Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8071507 (ref) Clear phantom reference as soft and weak references do
  3. JDK-8173071

Release Note: Phantom references are automatically cleared as soft and weak references

XMLWordPrintable

    • Verified

        This enhancement changes phantom references to be automatically cleared by the garbage collector as soft and weak references.

        An object becomes phantom reachable after it has been finalized. This change may cause the phantom reachable objects to be GC'ed earlier - previously the referent is kept alive until PhantomReference objects are GC'ed or cleared by the application. This potential behavioral change might only impact existing code that would depend on PhantomReference being enqueued rather than when the referent be freed from the heap.

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: