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

Mandy Chung mchung at openjdk.java.net
Wed Apr 20 02:00:26 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.

Looks good.   This patch is equivalent to 8175797 with the system property dropped.

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

Marked as reviewed by mchung (Reviewer).

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


More information about the jdk8u-dev mailing list