Integrated: 8367417: Serial: Use NMethodToOopClosure during Young GC

Albert Mingkun Yang ayang at openjdk.org
Wed Sep 17 08:23:59 UTC 2025


On Thu, 11 Sep 2025 13:07:11 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Change `MarkingNMethodClosure` to `NMethodToOopClosure` in young-gc, because no marking is done during young-gc. After that, `StrongRootsScope` becomes unnecessary as well, it's essentially calling `oops_do_marking_epilogue` to undo the effect of `MarkingNMethodClosure`.
> 
> Test: tier1-5

This pull request has now been integrated.

Changeset: d0ea6686
Author:    Albert Mingkun Yang <ayang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d0ea6686ebe2baff28f5368f5bbf9dc7f34dd6d8
Stats:     4 lines in 1 file changed: 0 ins; 2 del; 2 mod

8367417: Serial: Use NMethodToOopClosure during Young GC

Reviewed-by: fandreuzzi, stefank, tschatzl

-------------

PR: https://git.openjdk.org/jdk/pull/27226


More information about the hotspot-gc-dev mailing list