RFR: 8368251: Parallel: Refactor lgrp_id used in MutableNUMASpace [v3]
Joel Sikström
jsikstro at openjdk.org
Thu Sep 25 07:01:41 UTC 2025
> Hello,
>
> There are multiple cases which handle if the locality group (lgrp) id is negative (-1) in Parallel, specifically in MutableNUMASpace. -1 was historically used to indicate that the hardware topology has changed and that the lgrp id needs to be updated. This is no longer the case, since HotSpot doesn't support CPU/NUMA hotplugging, and the last piece of code setting the lgrp id to -1 was removed in [JDK-8301149](https://bugs.openjdk.org/browse/JDK-8301149).
>
> I propose we simplify the code a bit by not handling edge cases where the lgrp id is -1 and removing os::numa_has_group_homing(), which always return false
>
> Testing:
> * Running through Oracle's tier 1-4
> * Local NUMA testing tier1-4 with `-XX:+UseParallelGC -XX:+UseNUMA`
Joel Sikström has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
- Merge branch 'master' into JDK-8368251_parallel_lgrpid
- Copyright years
- Don't set lgrp_id on Windows since we don't support NUMA there
- 8368251: Parallel: Refactor lgrp_id used in MutableNUMASpace
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27424/files
- new: https://git.openjdk.org/jdk/pull/27424/files/d8dcd72a..68e3a891
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27424&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27424&range=01-02
Stats: 157580 lines in 1696 files changed: 130024 ins; 16965 del; 10591 mod
Patch: https://git.openjdk.org/jdk/pull/27424.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27424/head:pull/27424
PR: https://git.openjdk.org/jdk/pull/27424
More information about the hotspot-gc-dev
mailing list