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

Skip null for make_referent_alive in referenceProcessor

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: