< prev index next >
src/hotspot/share/runtime/vmThread.cpp
Print this page
rev 59757 : Add whitebox support for deflating idle monitors including ObjectSynchronizer::request_deflate_idle_monitors(); drop ObjectSynchronizer::_is_special_deflation_requested flag, functions and uses; switch to ObjectSynchronizer::request_deflate_idle_monitors() as needed; _last_async_deflation_time_ns should be set at the end of async deflation;
*** 283,297 ****
xtty->end_elem();
assert(should_terminate(), "termination flag must be set");
}
if (AsyncDeflateIdleMonitors && log_is_enabled(Info, monitorinflation)) {
! // AsyncDeflateIdleMonitors does a special deflation at the final
! // safepoint in order to reduce the in-use monitor population that
! // is reported by ObjectSynchronizer::log_in_use_monitor_details()
! // at VM exit.
! ObjectSynchronizer::set_is_special_deflation_requested(true);
}
// 4526887 let VM thread exit at Safepoint
_cur_vm_operation = &halt_op;
SafepointSynchronize::begin();
--- 283,296 ----
xtty->end_elem();
assert(should_terminate(), "termination flag must be set");
}
if (AsyncDeflateIdleMonitors && log_is_enabled(Info, monitorinflation)) {
! // AsyncDeflateIdleMonitors does a special deflation in order
! // to reduce the in-use monitor population that is reported by
! // ObjectSynchronizer::log_in_use_monitor_details() at VM exit.
! ObjectSynchronizer::request_deflate_idle_monitors();
}
// 4526887 let VM thread exit at Safepoint
_cur_vm_operation = &halt_op;
SafepointSynchronize::begin();
< prev index next >