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

Serial: Use NMethodToOopClosure during Young GC

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      `DefNewGeneration::collect` use `MarkingNMethodClosure` to process oops inside nmethods during young-gc. However, since young-gc using scavenging, instead of marking, there is no need for `MarkingNMethodClosure` -- `NMethodToOopClosure` is enough.

      After switching to `NMethodToOopClosure`, `StrongRootsScope` is not needed any more, which is used to undo the effect of nmethod-claiming inside `MarkingNMethodClosure`.

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

              Created:
              Updated: