RFR: 8282651: ZGC: vmTestbase/gc/ArrayJuggle/ tests fails intermittently with exit code 97 [v2]
Leonid Mesnik
lmesnik at openjdk.org
Wed Jan 18 04:25:24 UTC 2023
On Mon, 9 Jan 2023 15:58:27 GMT, Ramkumar Sunderbabu <rsunderbabu 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.
>
> 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
Marked as reviewed by lmesnik (Reviewer).
test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle01/Juggle01.java line 62:
> 60: public void run() {
> 61: int index = LocalRandom.nextInt(array.length);
> 62: // Synchronizing on array object would reduce the concurrency.
Could you please update the comment?
The goal is not to reduce concurrency but to have no more than 1 object for every index.
-------------
PR: https://git.openjdk.org/jdk/pull/11830
More information about the hotspot-gc-dev
mailing list