8222637: Obsolete NeedsDeoptSuspend

Reviewed-by: dlong, coleenp, dholmes
This commit is contained in:
Robbin Ehn 2019-04-26 10:18:47 +02:00
parent f6382d9b88
commit 1814ecf475
13 changed files with 4 additions and 95 deletions

View file

@ -2526,21 +2526,6 @@ void JavaThread::check_safepoint_and_suspend_for_native_trans(JavaThread *thread
SafepointMechanism::block_if_requested(curJT);
}
if (thread->is_deopt_suspend()) {
thread->clear_deopt_suspend();
RegisterMap map(thread, false);
frame f = thread->last_frame();
while (f.id() != thread->must_deopt_id() && ! f.is_first_frame()) {
f = f.sender(&map);
}
if (f.id() == thread->must_deopt_id()) {
thread->clear_must_deopt_id();
f.deoptimize(thread);
} else {
fatal("missed deoptimization!");
}
}
JFR_ONLY(SUSPEND_THREAD_CONDITIONAL(thread);)
}