RFR: 8297977: vmTestbase/nsk/stress/except/except012.java fails with unexpected Exception
Coleen Phillimore
coleenp at openjdk.org
Thu Mar 23 20:56:25 UTC 2023
These vmTestbase/nsk/stress/except tests all allocate enough memory to get an OutOfMemoryError then try to throw an exception for a variety of error conditions. The tests pass (or all say it's "Skipped ...") if that throws OutOfMemoryError, which all the tests do.
Only except001.java did something useful - called a function that gets OOM reflectively then tests that it got an InvocationTargetException so I moved that to runtime/reflect/ReflectOutOfMemoryError.java. This change removes the rest.
I couldn't reproduce the original failure in except012.java, which gets another exception (not OOM or ThreadDeath).
-------------
Commit messages:
- 8297977: vmTestbase/nsk/stress/except/except012.java fails with unexpected Exception
Changes: https://git.openjdk.org/jdk/pull/13169/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13169&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8297977
Stats: 3900 lines in 14 files changed: 102 ins; 3798 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/13169.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13169/head:pull/13169
PR: https://git.openjdk.org/jdk/pull/13169
More information about the hotspot-runtime-dev
mailing list