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

Poonam Bajaj poonam at openjdk.java.net
Thu Apr 28 17:39:56 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.

This pull request has now been integrated.

Changeset: 330d63d2
Author:    Poonam Bajaj <poonam at openjdk.org>
URL:       https://git.openjdk.java.net/jdk8u-ri/commit/330d63d2f9e18ba069e11868d4381059c66f480f
Stats:     61 lines in 3 files changed: 52 ins; 3 del; 6 mod

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

Reviewed-by: mchung, kbarrett, iris

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

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


More information about the jdk8u-dev mailing list