Serial: Refactor oop closures used in Young GC

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • gc
    • b11

      Those oop closures are used only by defNewGeneration.cpp, group them there. This means genOopClosures can be removed.

      Semantically, there are five kinds of closures used for oops in various places/situations.

      - OldGenScanClosure: used on dirty cards in old-gen (old -> young)
      - PromoteFailureClosure: used for promote-failure on eden/from spaces
      - YoungGenScanClosure: used on to-space
      - RootScanClosure: used on locations outside heap
      - CLDScanClosure: used on locations in CLD

      It's clearer to have concrete types and one can different assertions in each of them.

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

              Created:
              Updated:
              Resolved: