RFR: 8315566: [JVMCI] deadlock in JVMCI startup when bad option specified

Doug Simon dnsimon at openjdk.org
Sat Sep 2 11:06:05 UTC 2023


This PR changes `HotSpotJVMCIRuntime.vmEventListeners` to be initialized in the `HotSpotJVMCIRuntime` constructor. This avoids a deadlock that can occur when this list is lazily initialized. Lazily initializing this list has no measurable performance benefit, especially in the context of libgraal.

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

Commit messages:
 - eagerly create VM event listeners to avoid deadlock in VM shutdown

Changes: https://git.openjdk.org/jdk/pull/15549/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15549&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8315566
  Stats: 23 lines in 1 file changed: 3 ins; 12 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/15549.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15549/head:pull/15549

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


More information about the hotspot-compiler-dev mailing list