Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8297209

Serial: Refactor GenCollectedHeap::full_process_roots

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • 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.

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

              Created:
              Updated:
              Resolved: