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

(ref) Clear phantom reference as soft and weak references do

    Details

    • Subcomponent:
    • Resolved In Build:
      b103
    • Verification:
      Verified

      Description

      Soft and weak references are automatically-cleared references (i.e. these references are cleared by the collector before it's enqueued) whereas phantom reference is not an automatically-cleared reference. Instead, the get method of a phantom reference always returns null to ensure that the referent of a phantom reference may not be retrieved.

      This proposes to make phantom references automatically-cleared reference as soft and weak references do.

        Issue Links

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/107dae30be84
          User: kbarrett
          Date: 2015-12-28 20:45:45 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/107dae30be84 User: kbarrett Date: 2015-12-28 20:45:45 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/42ccdfe56796
          User: kbarrett
          Date: 2015-12-28 20:45:47 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/42ccdfe56796 User: kbarrett Date: 2015-12-28 20:45:47 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/42ccdfe56796
          User: lana
          Date: 2016-01-27 21:42:04 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/42ccdfe56796 User: lana Date: 2016-01-27 21:42:04 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/107dae30be84
          User: lana
          Date: 2016-01-27 21:42:23 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/107dae30be84 User: lana Date: 2016-01-27 21:42:23 +0000

            People

            • Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: