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

(ref) Reference::enqueue method should clear referent before enqueuing

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b161
    • Verification:
      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

              Activity

                People

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

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: