@@ -93,7 +93,7 @@ class ThreadStateTransition : public StackObj {
9393 // Change to transition state and ensure it is seen by the VM thread.
9494 thread->set_thread_state_fence ((JavaThreadState)(from + 1 ));
9595
96- SafepointMechanism::block_if_requested (thread);
96+ SafepointMechanism::process_if_requested (thread);
9797 thread->set_thread_state (to);
9898 }
9999
@@ -114,7 +114,7 @@ class ThreadStateTransition : public StackObj {
114114 // We never install asynchronous exceptions when coming (back) in
115115 // to the runtime from native code because the runtime is not set
116116 // up to handle exceptions floating around at arbitrary points.
117- if (SafepointMechanism::should_block (thread) || thread->is_suspend_after_native ()) {
117+ if (SafepointMechanism::should_process (thread) || thread->is_suspend_after_native ()) {
118118 JavaThread::check_safepoint_and_suspend_for_native_trans (thread);
119119 }
120120
@@ -135,7 +135,7 @@ class ThreadInVMForHandshake : public ThreadStateTransition {
135135 // Change to transition state and ensure it is seen by the VM thread.
136136 _thread->set_thread_state_fence (_thread_in_vm_trans);
137137
138- SafepointMechanism::block_if_requested (_thread);
138+ SafepointMechanism::process_if_requested (_thread);
139139
140140 _thread->set_thread_state (_original_state);
141141
@@ -290,9 +290,9 @@ class ThreadBlockInVMWithDeadlockCheck : public ThreadStateTransition {
290290 // Change to transition state and ensure it is seen by the VM thread.
291291 _thread->set_thread_state_fence ((JavaThreadState)(_thread_blocked_trans));
292292
293- if (SafepointMechanism::should_block (_thread)) {
293+ if (SafepointMechanism::should_process (_thread)) {
294294 release_mutex ();
295- SafepointMechanism::block_if_requested (_thread);
295+ SafepointMechanism::process_if_requested (_thread);
296296 }
297297
298298 _thread->set_thread_state (_thread_in_vm);
0 commit comments