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

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

XMLWordPrintable

    • b103
    • Verified

        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.

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

                Created:
                Updated:
                Resolved: