src/hotspot/share/runtime/safepoint.cpp
changeset 52703 e7fdc9d9c376
parent 52672 bbfa1b3aaf7e
child 52857 7e268f863ff0
equal deleted inserted replaced
52702:10c6e9066819 52703:e7fdc9d9c376
   614   void work(uint worker_id) {
   614   void work(uint worker_id) {
   615     // All threads deflate monitors and mark nmethods (if necessary).
   615     // All threads deflate monitors and mark nmethods (if necessary).
   616     Threads::possibly_parallel_threads_do(true, &_cleanup_threads_cl);
   616     Threads::possibly_parallel_threads_do(true, &_cleanup_threads_cl);
   617 
   617 
   618     if (_subtasks.try_claim_task(SafepointSynchronize::SAFEPOINT_CLEANUP_DEFLATE_MONITORS)) {
   618     if (_subtasks.try_claim_task(SafepointSynchronize::SAFEPOINT_CLEANUP_DEFLATE_MONITORS)) {
   619       const char* name = "deflating idle monitors";
   619       const char* name = "deflating global idle monitors";
   620       EventSafepointCleanupTask event;
   620       EventSafepointCleanupTask event;
   621       TraceTime timer(name, TRACETIME_LOG(Info, safepoint, cleanup));
   621       TraceTime timer(name, TRACETIME_LOG(Info, safepoint, cleanup));
   622       ObjectSynchronizer::deflate_idle_monitors(_counters);
   622       ObjectSynchronizer::deflate_idle_monitors(_counters);
   623       if (event.should_commit()) {
   623       if (event.should_commit()) {
   624         post_safepoint_cleanup_task_event(&event, name);
   624         post_safepoint_cleanup_task_event(&event, name);