< prev index next >

src/share/vm/runtime/safepoint.cpp

Print this page
rev 13094 : [mq]: deflation

@@ -523,10 +523,12 @@
     event.commit();
   }
 }
 
 bool SafepointSynchronize::is_cleanup_needed() {
+  // Need a safepoint if there many monitor to deflate
+  if (ObjectSynchronizer::is_cleanup_needed()) return true;
   // Need a safepoint if some inline cache buffers is non-empty
   if (!InlineCacheBuffer::is_empty()) return true;
   return false;
 }
 
< prev index next >