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
- csr of
-
JDK-8193780 (ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property
-
- Resolved
-