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

Ramkumar Sunderbabu rsunderbabu at openjdk.org
Wed Jan 4 05:17:49 UTC 2023


On Tue, 3 Jan 2023 19:09:46 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> In systems with many cores, lots of threads create arrays very quickly and result in OOM. The intention of the ArrayJuggle tests is not to stress gc but to do array juggling. Hence number of objects juggling can be restricted to a minimum so that we don't face OOM even when threads available are high.
>
> test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle01/Juggle01.java line 77:
> 
>> 75:                 // Keep object count to 4, intention is to juggle
>> 76:                 // not to overwhelm gc
>> 77:                 int objectCount = 4;
> 
> I don't see how it is used.

array = new Object[objectCount - 1];
This is the array where juggling happens. Limiting the object count limits the number of objects created.

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

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


More information about the hotspot-gc-dev mailing list