`MarkingCodeBlobClosure` can be used for scavenging (in young-gc) and marking (in full-gc). However, it's kind of an abuse for the adjust-phase in full-gc.
In Parallel (`PSAdjustTask::work`) and G1 (`G1FullGCAdjustTask::work`), a plain `CodeBlobToOopClosure` is used instead.
Change Serial to do the same thing.
Another benefit is that one can drop `StrongRootsScope` in the adjust-phase.
In Parallel (`PSAdjustTask::work`) and G1 (`G1FullGCAdjustTask::work`), a plain `CodeBlobToOopClosure` is used instead.
Change Serial to do the same thing.
Another benefit is that one can drop `StrongRootsScope` in the adjust-phase.