RFR: 8280761: UseCompressedOops should be set after limit_heap_by_allocatable_memory [v5]
Albert Mingkun Yang
ayang at openjdk.java.net
Wed Apr 13 10:50:24 UTC 2022
On Wed, 13 Apr 2022 08:38:59 GMT, KIRIYAMA Takuya <duke at openjdk.java.net> wrote:
>> I fixed to set UseCompressedOops flag after limit_heap_by_allocatable_memory().
>> So when ulimit -v is called and -XX:MaxRAM is set, UseCompressedOops does not become false.
>> And all hotspot tier1 test are passed.
>> Would you please review this fix?
>
> KIRIYAMA Takuya has updated the pull request incrementally with one additional commit since the last revision:
>
> 8280761 UseCompressedOops should be set after limit_heap_by_allocatable_memory
Need sth like this to resolve the failure.
// Convert bytes to kbytes for ulimit -v
var ulimit_prefix = "ulimit -v " + (ulimit / 1024);
...
ProcessBuilder pb = new ProcessBuilder("sh", "-c", ulimit_prefix + ";" + cmd);
-------------
PR: https://git.openjdk.java.net/jdk/pull/7938
More information about the hotspot-gc-dev
mailing list