During exit VM disable execution of new JVMTI events and waits for already 
started events before  changing jvmti phase to dead.  

Thus it exits from VM event then it block itself. The fix updates vm_death to 
wait only events on the other threads. 



---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - updated comments
 - Merge branch 'master' of https://github.com/openjdk/jdk into 8385823
 - 8385823: System.exit in premain hangs for 60 seconds

Changes: https://git.openjdk.org/jdk/pull/34135/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=34135&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8385823
  Stats: 95 lines in 4 files changed: 91 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/34135.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/34135/head:pull/34135

PR: https://git.openjdk.org/jdk/pull/34135

Reply via email to