RFR: 8352181: Shenandoah: Evacuate thread roots after early cleanup
Aleksey Shipilev
shade at openjdk.org
Tue Mar 18 09:06:14 UTC 2025
On Mon, 17 Mar 2025 21:37:14 GMT, William Kemper <wkemper at openjdk.org> wrote:
> Moving the evacuation of thread roots after early cleanup allows Shenandoah to recycle immediate garbage a bit sooner in the cycle.
I believe the reason we do thread roots earlier is to do the bulk of the stack processing before mutator sees it. If mutator does it by itself, it will go through armed nmethod barriers, which might be introducing extra latency.
So we need to think if the benefit of doing the immediate cleanup earlier is worth accepting more active nmethod barriers in mutator.
-------------
PR Review: https://git.openjdk.org/jdk/pull/24090#pullrequestreview-2693567054
More information about the shenandoah-dev
mailing list