History log of /openjdk10/jdk/test/java/lang/ref/ReferenceEnqueue.java
Revision Date Author Comments
# 17079:63a174bf063a 18-Apr-2017 kbarrett

8178832: (ref) jdk.lang.ref.disableClearBeforeEnqueue property is ignored
Summary: Delay property access to first use, and fix test.
Reviewed-by: mchung


# 16834:bc1bf2be03bc 09-Mar-2017 mchung

8175797: (ref) Reference::enqueue method should clear referent before enqueuing
Reviewed-by: alanb, kbarrett, mr


# 12597:eab40d8ea2e5 04-Aug-2015 kbarrett

8132306: java/lang/ref/ReferenceEnqueue.java fails with "RuntimeException: Error: poll() returned null; expected ref object"
Summary: Carefully order ref.queue and queue list updates to address races.
Reviewed-by: dholmes, dfuchs, plevart


# 4706:5f2838744544 31-Oct-2011 ysr

4243978: (ref) Race condition in Reference.enqueue()
4268317: (ref) Reference.isEnqueued() can return true when instance not enqueued
Summary: The reference handler now declares, and assumes, that the discovered field, rather than the next field, is (to be) used to link the entries in the pending list, thus allowing a reference object to be safely enqueued even while it is in the pending state. Also added slightly modified regression tests from the two bug reports.
Reviewed-by: mchung, alanb, jcoomes