mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8246477
: add whitebox support for deflating idle monitors
Reviewed-by: dholmes, eosterlund
This commit is contained in:
parent
362f168d23
commit
3e4ad5d8d1
10 changed files with 158 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue