8246477: add whitebox support for deflating idle monitors

Reviewed-by: dholmes, eosterlund
This commit is contained in:
Daniel D. Daugherty 2020-06-24 17:48:53 -04:00
parent 362f168d23
commit 3e4ad5d8d1
10 changed files with 158 additions and 79 deletions

View file

@ -432,11 +432,10 @@ int VM_Exit::wait_for_threads_in_native_to_block() {
bool VM_Exit::doit_prologue() {
if (AsyncDeflateIdleMonitors && log_is_enabled(Info, monitorinflation)) {
// AsyncDeflateIdleMonitors does a special deflation at the VM_Exit
// 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);
// 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();
}
return true;
}