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

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

    XMLWordPrintable

Details

    • b161
    • Verified

    Backports

      Description

        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.

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: