JDK-8193780 : (ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-12-18
  • Updated: 2022-08-22
  • Resolved: 2017-12-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 8 Other
11 b01Fixed 8u351Fixed openjdk8u352Fixed
Related Reports
Blocks :  
Blocks :  
CSR :  
Relates :  
Description
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 to give time to migrate to JDK 9 spec change.

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/99 Date: 2022-08-11 19:12:23 +0000
11-08-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk8u-ri/pull/5 Date: 2022-04-20 00:15:58 +0000
20-04-2022

URL: http://hg.openjdk.java.net/jdk/jdk/rev/2731c0ee46a9 User: mchung Date: 2017-12-21 23:09:27 +0000
21-12-2017