--- old/src/hotspot/share/runtime/safepointMechanism.inline.hpp 2020-04-06 14:31:50.708602301 +0000 +++ new/src/hotspot/share/runtime/safepointMechanism.inline.hpp 2020-04-06 14:31:49.807580645 +0000 @@ -66,19 +66,6 @@ thread->set_polling_page(poll_disarmed_value()); } -void SafepointMechanism::disarm_if_needed(JavaThread* thread, bool memory_order_release) { - JavaThreadState jts = thread->thread_state(); - if (jts == _thread_in_native || jts == _thread_in_native_trans) { - // JavaThread will disarm itself and execute cross_modify_fence() before continuing - return; - } - if (memory_order_release) { - thread->set_polling_page_release(poll_disarmed_value()); - } else { - thread->set_polling_page(poll_disarmed_value()); - } -} - void SafepointMechanism::arm_local_poll_release(JavaThread* thread) { thread->set_polling_page_release(poll_armed_value()); }