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

Serial: Use more precise nmethod scope during Full GC marking

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • gc
    • master

      During Serial full-gc marking, `StrongRootsScope` is used to prepare nmethod marking and thread-claim. Since Serial uses single thread for GC, the thread-claim part is statically skipped by passing zero in `StrongRootsScope srs(0)`.

      In order to make it more explicit what `StrongRootsScope` entails in this context, one can probably use something more precise to convey what's expected in this context, e.g. NMethodMarkingScope.

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

              Created:
              Updated:
              Resolved: