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

(ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 11
    • core-libs
    • None
    • behavioral
    • minimal
    • No change in default behavior.
    • System or security property
    • Implementation

      Summary

      Remove the system property jdk.lang.ref.disableClearBeforeEnqueue that was added to restore the Reference::enqueue to JDK 8 behavior, i.e. not to clear the reference object.

      Problem

      The behavior of the Reference::enqueue method was changed in JDK 9 to clear the reference object before enqueuing. A system property jdk.lang.ref.disableClearBeforeEnqueue was added to allow existing code to revert to JDK 8 behavior as an interim solution and give time to migrate to JDK 9 new behavior.

      Solution

      Remove jdk.lang.ref.disableClearBeforeEnqueue system property support.

      Specification

      Setting -Djdk.lang.ref.disableClearBeforeEnqueue=true will have no effect to Reference::enqueue method.

      No spec change since jdk.lang.ref.disableClearBeforeEnqueue system property is undocumented.

            mchung Mandy Chung
            mchung Mandy Chung
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: