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

Undiscovered references if using ReferentBasedDiscovery

    XMLWordPrintable

Details

    • gc

    Description

      The current implementation of `ReferentBasedDiscovery` would sometime incorrectly mark a referent strongly reachable, causing the enclosing non-strong ref undiscovered.

      Reproducer: `make CONF=debug test TEST=gc/g1/humongousObjects/TestHumongousClassLoader.java JTREG="VM_OPTIONS=-XX:RefDiscoveryPolicy=1"`

      The problematic path is hit only by G1. Serial and Parallel collectors are not affected.

      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: