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

G1: Remove DO_DISCOVERED_AND_DISCOVERY

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • hotspot
    • gc
    • b15

      DO_DISCOVERED_AND_DISCOVERY handles non-strong refs that already-discovered (_discovered != null) but not "inactive" (still requires ref-processing).

      However, that scenario can never occur.

      stw-ref-processor mark all discovered refs inactive in STW-pause.

      When conc-ref-processing is active, conc-ref-processor and stw-ref-processor work on objs belonging to young/old gen respectively. (Young regions or regions that are collection-candidates are in young-gen, and old-regions that are not collection-candidates are in old-gen.) After conc-ref-processing is complete, all discovered non-strong refs should be marked "inactive" insider the `remark` pause, not eligible for discovery any more.

      Therefore, both ref-processors shouldn't see already-discovered and active refs.

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

              Created:
              Updated:
              Resolved: