RFR: 8260591: Shenandoah: improve parallelism for concurrent thread root scans
Aleksey Shipilev
shade at openjdk.java.net
Thu Jan 28 14:32:42 UTC 2021
On Thu, 28 Jan 2021 14:24:35 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> I thought fetch_and_add is pretty cheap now, and claiming one thread at a time can balance workload better ...
Atomics are cheap when uncontended. When per-thread work is small, we run into contended atomic, and get unnecessary slowdowns. Chunking might indeed make balancing less precise, but we might not care as much as contending with many GC worker threads.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2290
More information about the hotspot-gc-dev
mailing list