< prev index next >

src/hotspot/share/runtime/vmThread.cpp

Print this page
rev 55493 : imported patch dcubed.monitor_deflate_conc.v2.04
rev 55494 : imported patch dcubed.monitor_deflate_conc.v2.05

@@ -309,15 +309,15 @@
     xtty->stamp();
     xtty->end_elem();
     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);
   }
 
   // 4526887 let VM thread exit at Safepoint
   _cur_vm_operation = &halt_op;
< prev index next >