RFR: 8359683: ZGC: NUMA-Aware Relocation [v3]
Joel Sikström
jsikstro at openjdk.org
Mon Aug 25 15:07:52 UTC 2025
On Mon, 25 Aug 2025 13:13:19 GMT, Stefan Johansson <sjohanss at openjdk.org> wrote:
> Looks good, did you look anything at changing the iterators to make it possible having something like `_iters.reset()` in the constructor for `ZRelocateTask`. This could also be done as a followup.
I tested out and discussed some potential alternatives with Axel and we both agreed that a nice solution to this would be better implemented in a follow-up. We envisioned something where we can reset the state of an iterator, without destructing and constructing them like we do in this patch. This would require control over changing the iterator's internal state. Another solution is to use malloc to allocate/free the array before/after every GC cycle, but I prefer the current solution more.
I expanded upon the comment next to destructing the iterators, which I hope is a good compromise until a nicer solution is in place.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26898#issuecomment-3220659696
More information about the hotspot-gc-dev
mailing list