RFR: 8301149: Parallel: Refactor MutableNUMASpace::update_layout [v2]

Leo Korinth lkorinth at openjdk.org
Wed Feb 1 13:57:54 UTC 2023


On Wed, 1 Feb 2023 09:48:15 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Small cleanup to simplify the structure.
>> 
>> Test: hotspot_gc on boxes with two NUMA nodes.
>
> Albert Mingkun Yang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   review

src/hotspot/share/gc/parallel/mutableNUMASpace.cpp line 56:

> 54: #endif // LINUX
> 55: 
> 56:   int lgrp_limit = (int)os::numa_get_groups_num();

Pre-existing, but if you like you can make `lgrp_limit` `size_t`, one ugly cast can be removed. Unfortunately the cast two lines below can not be removed because of `int` indexing in growable array.

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

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


More information about the hotspot-gc-dev mailing list