8220049: Obsolete ThreadLocalHandshakes

Reviewed-by: dholmes, dcubed, mdoerr
This commit is contained in:
Robbin Ehn 2019-12-11 15:30:07 +01:00
parent f5929f55cc
commit 0df5be808d
28 changed files with 38 additions and 135 deletions

View file

@ -881,7 +881,7 @@ void SafepointSynchronize::block(JavaThread *thread) {
void SafepointSynchronize::handle_polling_page_exception(JavaThread *thread) {
assert(thread->is_Java_thread(), "polling reference encountered by VM thread");
assert(thread->thread_state() == _thread_in_Java, "should come from Java code");
if (!ThreadLocalHandshakes) {
if (!SafepointMechanism::uses_thread_local_poll()) {
assert(SafepointSynchronize::is_synchronizing(), "polling encountered outside safepoint synchronization");
}