--- a/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Thu Nov 08 10:08:52 2018 +0100
+++ b/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Thu Nov 08 14:32:49 2018 +0100
@@ -381,7 +381,7 @@
// Handle safepoint operations, pending suspend requests,
// and pending asynchronous exceptions.
- if (SafepointMechanism::poll(thread) ||
+ if (SafepointMechanism::should_block(thread) ||
thread->has_special_condition_for_native_trans()) {
JavaThread::check_special_condition_for_native_trans(thread);
CHECK_UNHANDLED_OOPS_ONLY(thread->clear_unhandled_oops());
@@ -513,7 +513,7 @@
intptr_t *locals = stack->sp();
// Drop into the slow path if we need a safepoint check
- if (SafepointMechanism::poll(THREAD)) {
+ if (SafepointMechanism::should_block(THREAD)) {
return normal_entry(method, 0, THREAD);
}
@@ -645,7 +645,7 @@
ZeroStack *stack = thread->zero_stack();
// Drop into the slow path if we need a safepoint check
- if (SafepointMechanism::poll(THREAD)) {
+ if (SafepointMechanism::should_block(THREAD)) {
return normal_entry(method, 0, THREAD);
}