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

Skip null for make_referent_alive in referenceProcessor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • hotspot
    • None
    • gc
    • b18

      In ref-processing, references with live referents are dropped from the discovered list, and their referents are mark live by calling `DiscoveredListIterator::make_referent_alive`.

      It's not necessary to do so for null referent, and it's confusing as well -- what does it mean to make a null referent live.

      Add referent != null as a precondition for make_referent_alive.

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

              Created:
              Updated:
              Resolved: