RFR: 8316060: test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java may fail if heap is huge
David Holmes
dholmes at openjdk.org
Wed Sep 13 01:40:37 UTC 2023
On Tue, 12 Sep 2023 01:22:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> The test tries to generate the OOM by filling the whole heap, unfortunately it may fail if the heap is large than 25G. If the heap is around 15-20G the test is quite slow.
>
> The current patch is kind of modified version of the next [fix](https://github.com/openjdk/jdk/pull/14070/files#r1199632388), but instead of increasing timeout it minimize the amount of memory used by the heap.
Looks good - all OOME inducing tests should set the heap size. And presumably it will also now run fast so doesn't need a custom timeout.
Thanks
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15676#pullrequestreview-1623499614
More information about the hotspot-runtime-dev
mailing list