RFR: 8282651: ZGC: vmTestbase/gc/ArrayJuggle/ tests fails intermittently with exit code 97 [v4]

Leonid Mesnik lmesnik at openjdk.org
Wed Aug 31 16:17:10 UTC 2022


On Sun, 28 Aug 2022 04:23:26 GMT, Ramkumar Sunderbabu <rsunderbabu at openjdk.org> wrote:

>> Fixing JuggleTests for OOME.
>> The JuggleTests continuously allocate memory and juggle them in various array positions. Over the course of allocation, heap might be fully filled, esp in high memory strategy. The test doesn't take into account OOME and run under the assumption that any freed memory would be immediately GCed. Immediate GC under memory stress is not guaranteed. Hence it is better to explicitly call WhiteBox API to do the job.
>
> Ramkumar Sunderbabu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8282651: ZGC: vmTestbase/gc/ArrayJuggle/ tests fails intermittently with exit code 97

test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle01/Juggle01.java line 55:

> 53:         // Keep thread count to 4, intention is to juggle
> 54:         // with multiple threads, not to overwhelm gc
> 55:         private static int NUM_JUGGLE_THREADS = 4;

Could you please make number of threads depend on the CPU?

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

PR: https://git.openjdk.org/jdk/pull/9645



More information about the hotspot-gc-dev mailing list