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.

        Attachments

          Issue Links

            Activity

              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: