hotspot/src/share/vm/runtime/safepoint.cpp
changeset 46541 d20828de9e39
parent 46496 76ed99d51a67
child 46630 75aa3e39d02c
--- a/hotspot/src/share/vm/runtime/safepoint.cpp	Wed Jun 14 08:47:27 2017 +0200
+++ b/hotspot/src/share/vm/runtime/safepoint.cpp	Thu Jun 15 09:52:44 2017 +0200
@@ -525,6 +525,8 @@
 }
 
 bool SafepointSynchronize::is_cleanup_needed() {
+  // Need a safepoint if there are many monitors 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;