[jdk8u-ri] RFR: 8175797: (ref) Reference::enqueue method should clear the reference object before enqueuing

Iris Clark iris at openjdk.java.net
Thu Apr 21 21:26:29 UTC 2022


On Wed, 20 Apr 2022 00:15:58 GMT, Poonam Bajaj <poonam at openjdk.org> wrote:

> These changes backport the following fixes to jdk8u-ri:
> 
> - 8175797: (ref) Reference::enqueue method should clear the reference object before enqueuing
> - 8178832: (ref) jdk.lang.ref.disableClearBeforeEnqueue property is ignored
> - 8193780: (ref) Remove the undocumented jdk.lang.ref.disableClearBeforeEnqueue system property
> 
> With this fix, the enqueue method clears the reference before enqueuing it to the registered queue.
> 
> The backport of changes to the file _jdk/test/java/lang/ref/ReferenceEnqueue.java_ needed some manual adjustment. Apart from that,  backport of changes to the rest of the files are exact match with the original fixes.

Spec changes look good.

-------------

Marked as reviewed by iris (Author).

PR: https://git.openjdk.java.net/jdk8u-ri/pull/5


More information about the jdk8u-dev mailing list