8212933: Thread-SMR: requesting a VM operation whilst holding a ThreadsListHandle can cause deadlocks

Reviewed-by: eosterlund, dcubed, sspitsyn, dholmes
This commit is contained in:
Robbin Ehn 2018-10-31 08:09:45 +01:00
parent e4f5ffc403
commit 80aa38305d
6 changed files with 117 additions and 66 deletions

View file

@ -4276,9 +4276,6 @@ bool Threads::destroy_vm() {
before_exit(thread);
thread->exit(true);
// thread will never call smr_delete, instead of implicit cancel
// in wait_for_vm_thread_exit we do it explicit.
thread->cancel_handshake();
// Stop VM thread.
{