mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +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
|
@ -493,11 +493,6 @@ JVM_END
|
|||
JVM_ENTRY_NO_ENV(void, JVM_GC(void))
|
||||
JVMWrapper("JVM_GC");
|
||||
if (!DisableExplicitGC) {
|
||||
if (AsyncDeflateIdleMonitors) {
|
||||
// AsyncDeflateIdleMonitors needs to know when System.gc() is
|
||||
// called so any special deflation can be done at a safepoint.
|
||||
ObjectSynchronizer::set_is_special_deflation_requested(true);
|
||||
}
|
||||
Universe::heap()->collect(GCCause::_java_lang_system_gc);
|
||||
}
|
||||
JVM_END
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue