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

Ramkumar Sunderbabu rsunderbabu at openjdk.org
Wed Aug 24 16:21:40 UTC 2022


On Wed, 24 Aug 2022 15:37:17 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

The test is multi-threaded. The calculation for memory doesn't take into account that the allocation is done in parallel by many threads. Hence, added the number of memory allocating threads in the object size calculation.

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

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



More information about the hotspot-gc-dev mailing list