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

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

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No change in default behavior.
    • Interface Kind:
      System or security property
    • Scope:
      Implementation

      Description

      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 referent.

      Problem

      The behavior of the Reference::enqueue method was changed in JDK 9 to clear referent 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: