RFR: 8280761: UseCompressedOops should be set after limit_heap_by_allocatable_memory [v3]
Thomas Schatzl
tschatzl at openjdk.java.net
Fri Apr 8 09:21:42 UTC 2022
On Fri, 8 Apr 2022 09:13:18 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
>> test/hotspot/jtreg/gc/arguments/TestUseCompressedOopsFlagsWithUlimit.java line 90:
>>
>>> 88: long oneG = 1L * 1024L * 1024L * 1024L;
>>> 89:
>>> 90: // Args: MaxRAM , MaxRAMPercentage, forcecoop, expect coop
>>
>> I am not sure why `MaxRAMPercentage` is needed here.
>
> I think this is that the initial value for `reasonable_max` is exactly `MaxRAM`; you are right that for this test it is not necessary to pass it explicitly, just always set it to 100 percent in the command line.
Consider that values like `MaxRAM` might change in the future (unlikely as it is). Setting it makes following the execution a bit easier imho.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7938
More information about the hotspot-gc-dev
mailing list