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.
- csr of
-
JDK-8193780 (ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property
- Resolved
- relates to
-
CCC-8175797 (ref) Reference::enqueue should clear the reference object before enqueuing
- Closed