RFR: 8339097: Parallel: Compact GC to split array early for task stealing
Thomas Stuefe
stuefe at openjdk.org
Thu Aug 29 14:23:20 UTC 2024
On Wed, 28 Aug 2024 12:49:46 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> Parallel Compact GC splits a large array in stripes during marking, so that other workers can steal the work.
>
> Currently, it only splits a large array into two tasks, retains and pushes remaining into a task queue for task stealing, depends on next worker to further split the array if possible, that creates artificial dependency.
>
> I would like purpose to have the first worker breaking up the array, to eliminate the dependency.
I am no expert, but I thought we do it this way to not artificially blow up the task queue for large arrays and many stripes? I may be wrong.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20745#issuecomment-2317852117
More information about the hotspot-gc-dev
mailing list