RFR: 8339587: runtime/reflect/ReflectOutOfMemoryError.java fails with "bootstrap method initialization exception"
David Holmes
dholmes at openjdk.org
Fri Sep 6 04:23:21 UTC 2024
Please review this simple test fix. The test provokes OOME but it was sometimes getting encountered in a context that led to a secondary exception - like the "bootstrap method initialization exception". The fix is to check the chain of exceptions to see if OOME was the cause.
Testing:
- test itself 5x on each platform
- manual testing with use of ParallelGC and disabling compressed oops as per the bug report.
Thanks.
-------------
Commit messages:
- 8339587: runtime/reflect/ReflectOutOfMemoryError.java fails with "bootstrap method initialization exception"
Changes: https://git.openjdk.org/jdk/pull/20881/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20881&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8339587
Stats: 16 lines in 1 file changed: 9 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/20881.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20881/head:pull/20881
PR: https://git.openjdk.org/jdk/pull/20881
More information about the hotspot-runtime-dev
mailing list