mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8235913: ThreadStop should be a handshake
Reviewed-by: dholmes, mdoerr
This commit is contained in:
parent
e4c96dea46
commit
a170a4af4a
4 changed files with 22 additions and 44 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue