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

(ref) Reference::enqueue method should clear the reference object before enqueuing

XMLWordPrintable

    • b161
    • Verified

        Soft, weak, and phantom references are automatically-cleared references (see JDK-8071507). The referent is cleared before the reference object is enqueued.

        The `enqueue` method should behave the same and it should clear the reference before enqueuing it to the registered queue.

        Surveying the existing usage of this enqueue method, it's a common pattern that Reference::clear is called before or after enqueuing.

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: