Serial: Refactor GenCollectedHeap::full_process_roots

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b27

      `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.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: