src/hotspot/share/interpreter/bytecodeInterpreter.cpp
changeset 47906 0ad8a90268a7
parent 47687 fb290fd1f9d4
child 48706 69d1a1590485
child 48826 c4d9d1b08e2e
--- a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp	Tue Nov 07 11:58:52 2017 +0100
+++ b/src/hotspot/share/interpreter/bytecodeInterpreter.cpp	Wed Nov 15 16:03:56 2017 +0100
@@ -99,12 +99,10 @@
   in relation to a safepoint.
 */
 #define SAFEPOINT                                                                 \
-    if ( SafepointSynchronize::is_synchronizing()) {                              \
-        {                                                                         \
-          /* zap freed handles rather than GC'ing them */                         \
-          HandleMarkCleaner __hmc(THREAD);                                        \
-        }                                                                         \
-        CALL_VM(SafepointSynchronize::block(THREAD), handle_exception);           \
+    {                                                                             \
+       /* zap freed handles rather than GC'ing them */                            \
+       HandleMarkCleaner __hmc(THREAD);                                           \
+       CALL_VM(SafepointMechanism::block_if_requested(THREAD), handle_exception); \
     }
 
 /*