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

Skip null for make_referent_alive in referenceProcessor

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • None
    • gc
    • b18

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: