diff --git a/src/hotspot/share/runtime/mountUnmountDisabler.cpp b/src/hotspot/share/runtime/mountUnmountDisabler.cpp index 5bf00323f10..261bbfb9c18 100644 --- a/src/hotspot/share/runtime/mountUnmountDisabler.cpp +++ b/src/hotspot/share/runtime/mountUnmountDisabler.cpp @@ -367,7 +367,7 @@ MountUnmountDisabler::enable_transition_for_all() { OrderAccess::release(); MonitorLocker ml(VThreadTransition_lock); - if (exclusive_operation_ongoing()) { + if (_is_exclusive) { set_exclusive_operation_ongoing(false); } dec_active_disablers();