RFR: 8298596: vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
Coleen Phillimore
coleenp at openjdk.org
Tue Jan 17 14:47:55 UTC 2023
Moved the MethodHandle initialization out of the eatMemory function into the static initializer, so the eatMemory function doesn't get an unexpected OOM while loading the ThreadLocal class.
Tested 100x with ZGC with and without debug.
-------------
Commit messages:
- 8298596: vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
Changes: https://git.openjdk.org/jdk/pull/12043/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12043&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8298596
Stats: 17 lines in 2 files changed: 12 ins; 3 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/12043.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12043/head:pull/12043
PR: https://git.openjdk.org/jdk/pull/12043
More information about the hotspot-gc-dev
mailing list