8235913: ThreadStop should be a handshake

Reviewed-by: dholmes, mdoerr
This commit is contained in:
Robbin Ehn 2019-12-19 17:02:11 +01:00
parent e4c96dea46
commit a170a4af4a
4 changed files with 22 additions and 44 deletions

View file

@ -85,18 +85,6 @@ void VM_Operation::print_on_error(outputStream* st) const {
}
}
void VM_ThreadStop::doit() {
assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint");
ThreadsListHandle tlh;
JavaThread* target = java_lang_Thread::thread(target_thread());
// Note that this now allows multiple ThreadDeath exceptions to be
// thrown at a thread.
if (target != NULL && (!EnableThreadSMRExtraValidityChecks || tlh.includes(target))) {
// The target thread has run and has not exited yet.
target->send_thread_stop(throwable());
}
}
void VM_ClearICs::doit() {
if (_preserve_static_stubs) {
CodeCache::cleanup_inline_caches();