< prev index next >

src/hotspot/share/runtime/objectMonitor.cpp

Print this page
rev 52432 : imported patch 8211403

@@ -1639,11 +1639,11 @@
     // (a) this thread, if unsafe, doesn't delay the safepoint, and (b)
     // this thread, if safe, doesn't steal cycles from GC.
     // This is in keeping with the "no loitering in runtime" rule.
     // We periodically check to see if there's a safepoint pending.
     if ((ctr & 0xFF) == 0) {
-      if (SafepointMechanism::poll(Self)) {
+      if (SafepointMechanism::should_block(Self)) {
         goto Abort;           // abrupt spin egress
       }
       SpinPause();
     }
 
< prev index next >