--- a/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Tue Nov 07 11:58:52 2017 +0100
+++ b/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Wed Nov 15 16:03:56 2017 +0100
@@ -379,7 +379,7 @@
// Handle safepoint operations, pending suspend requests,
// and pending asynchronous exceptions.
- if (SafepointSynchronize::do_call_back() ||
+ if (SafepointMechanism::poll(thread) ||
thread->has_special_condition_for_native_trans()) {
JavaThread::check_special_condition_for_native_trans(thread);
CHECK_UNHANDLED_OOPS_ONLY(thread->clear_unhandled_oops());
@@ -511,7 +511,7 @@
intptr_t *locals = stack->sp();
// Drop into the slow path if we need a safepoint check
- if (SafepointSynchronize::do_call_back()) {
+ if (SafepointMechanism::poll(THREAD)) {
return normal_entry(method, 0, THREAD);
}
@@ -643,7 +643,7 @@
ZeroStack *stack = thread->zero_stack();
// Drop into the slow path if we need a safepoint check
- if (SafepointSynchronize::do_call_back()) {
+ if (SafepointMechanism::poll(THREAD)) {
return normal_entry(method, 0, THREAD);
}