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

@ -261,11 +261,10 @@ void VMThread::run() {
}
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);
// 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