RFR: 8289764: gc/lock tests failed with "OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects" [v4]

Leonid Mesnik lmesnik at openjdk.org
Wed Aug 10 00:26:32 UTC 2022


On Wed, 10 Aug 2022 00:13:18 GMT, Ramkumar Sunderbabu <rsunderbabu at openjdk.org> wrote:

>> test/hotspot/jtreg/vmTestbase/gc/lock/LockerTest.java line 54:
>> 
>>> 52:             ExecutionController stresser = getExecutionController();
>>> 53:             // Use only 30% of the heap.
>>> 54:             final long testMemory = 3 * Runtime.getRuntime().maxMemory() / 10;
>> 
>> might be better to rename to testMemorySize
>
> I prefer to leave it as engageGC, it shows the intent better.

I meant rename testMemory to testMemorySize

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

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


More information about the hotspot-dev mailing list