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

Parallel: Move CLDG mark clearing to the end of full GC

XMLWordPrintable

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

      Currently, `ClassLoaderDataGraph::clear_claimed_marks` is called at the end of marking phase, but its purpose is to clear all claim-marks used during marking and adjust-pointer phases. For the sake of restoring those claim-marks to initial state (zero) after full-gc, it would make more sense to perform such clearing at the end of full-gc, like other STW GCs.

      Note that the current placement doesn't cause any correctness issues. From the correctness perspective, it's safe to call `clear_claimed_marks` any where inside the full-gc pause.

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

              Created:
              Updated:
              Resolved: