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
Wed Nov 17 14:28:40 UTC 2021


On Tue, 16 Nov 2021 21:48:41 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> 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

Thanks Coleen for reviewing this!

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

PR: https://git.openjdk.java.net/jdk/pull/6419


More information about the hotspot-runtime-dev mailing list