RFR: 8341379: Shenandoah: Improve lock contention during cleanup
Kelvin Nilsen
kdnilsen at openjdk.org
Wed Oct 2 00:54:53 UTC 2024
On Wed, 2 Oct 2024 00:24:00 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:
>> src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp line 944:
>>
>>> 942: // yields. Yielding more frequently when there is heavy contention for the heap lock or for CPU cores is considered the
>>> 943: // right thing to do.
>>> 944: const size_t REGION_STRIDE = 32;
>>
>> Maybe call this `REGIONS_PER_BATCH`? When I see `stride` I think how far the loop index moves on each iteration.
>
> Good suggestion.
Thanks. I've made this change.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21211#discussion_r1783698490
More information about the hotspot-gc-dev
mailing list