RFR: 8275037: Test vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java crashes with memory exhaustion on Windows
Harold Seigel
hseigel at openjdk.java.net
Tue Nov 16 21:57:53 UTC 2021
Please review this fix for JDK-8275037. The .../sysdict/vm/stress/btree tests were intermittently failing on Windows because invocations of javac by the tests were running out of memory. The fix sets the maximum heap to 1G when the tests invoke javac.
Additionally, the fix ignores NoClassDefFoundError exceptions thrown by Class.forName() because those exceptions can be caused by a running out of memory when initializing a class.
The fix was tested by running each .../sysdict/vm/stress test over 2000 times on Windows x64 debug builds. Additionally, each test was run hundreds of times on Linux x64, Linux aarch64, Macosx x64, and Macosx aarch64.
Thanks, Harold
-------------
Commit messages:
- 8275037: Test vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java crashes with memory exhaustion on Windows
Changes: https://git.openjdk.java.net/jdk/pull/6419/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6419&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8275037
Stats: 4 lines in 2 files changed: 1 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/6419.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6419/head:pull/6419
PR: https://git.openjdk.java.net/jdk/pull/6419
More information about the hotspot-runtime-dev
mailing list