< prev index next >
src/hotspot/share/runtime/safepoint.cpp
Print this page
rev 54110 : Checkpoint latest preliminary review patches for full OpenJDK review.
@@ -554,11 +554,15 @@
if (_subtasks.try_claim_task(SafepointSynchronize::SAFEPOINT_CLEANUP_DEFLATE_MONITORS)) {
const char* name = "deflating global idle monitors";
EventSafepointCleanupTask event;
TraceTime timer(name, TRACETIME_LOG(Info, safepoint, cleanup));
- ObjectSynchronizer::deflate_idle_monitors(_counters);
+ // AsyncDeflateIdleMonitors only uses DeflateMonitorCounters
+ // when a special cleanup has been requested.
+ // Note: This logging output will include global idle monitor
+ // elapsed times, but not global idle monitor deflation count.
+ ObjectSynchronizer::do_safepoint_work(!AsyncDeflateIdleMonitors ? _counters : NULL);
post_safepoint_cleanup_task_event(event, safepoint_id, name);
}
if (_subtasks.try_claim_task(SafepointSynchronize::SAFEPOINT_CLEANUP_UPDATE_INLINE_CACHES)) {
< prev index next >