--- old/src/hotspot/share/runtime/vmThread.cpp 2019-07-11 14:36:42.000000000 -0400 +++ new/src/hotspot/share/runtime/vmThread.cpp 2019-07-11 14:36:41.000000000 -0400 @@ -311,11 +311,11 @@ assert(should_terminate(), "termination flag must be set"); } - if (AsyncDeflateIdleMonitors) { + 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 ObjectSynchronizer::log_in_use_monitor_details() at - // VM exit. + // is reported by ObjectSynchronizer::log_in_use_monitor_details() + // at VM exit. ObjectSynchronizer::set_is_special_deflation_requested(true); }