src/hotspot/share/runtime/interfaceSupport.inline.hpp
changeset 52450 2790da836dc3
parent 51996 84743156e780
child 52460 f1bb77833b59
--- a/src/hotspot/share/runtime/interfaceSupport.inline.hpp	Thu Nov 08 10:08:52 2018 +0100
+++ b/src/hotspot/share/runtime/interfaceSupport.inline.hpp	Thu Nov 08 14:32:49 2018 +0100
@@ -162,7 +162,7 @@
     // We never install asynchronous exceptions when coming (back) in
     // to the runtime from native code because the runtime is not set
     // up to handle exceptions floating around at arbitrary points.
-    if (SafepointMechanism::poll(thread) || thread->is_suspend_after_native()) {
+    if (SafepointMechanism::should_block(thread) || thread->is_suspend_after_native()) {
       JavaThread::check_safepoint_and_suspend_for_native_trans(thread);
 
       // Clear unhandled oops anywhere where we could block, even if we don't.