< prev index next >
src/hotspot/cpu/zero/cppInterpreter_zero.cpp
Print this page
rev 52432 : imported patch 8211403
@@ -379,11 +379,11 @@
// Make sure new state is visible in the GC thread
InterfaceSupport::serialize_thread_state(thread);
// 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());
}
@@ -511,11 +511,11 @@
JavaThread *thread = (JavaThread *) THREAD;
ZeroStack *stack = thread->zero_stack();
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);
}
// Load the object pointer and drop into the slow path
// if we have a NullPointerException
@@ -643,11 +643,11 @@
int CppInterpreter::empty_entry(Method* method, intptr_t UNUSED, TRAPS) {
JavaThread *thread = (JavaThread *) THREAD;
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);
}
// Pop our parameters
stack->set_sp(stack->sp() + method->size_of_parameters());
< prev index next >