jdk-24/jdk/test/java/lang/ref
Y. Srinivas Ramakrishna e9207384c5 4243978: (ref) Race condition in Reference.enqueue()
4268317: (ref) Reference.isEnqueued() can return true when instance not enqueued

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
2011-10-31 17:38:15 -07:00
..
SoftReference 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
Basic.java 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
EnqueueNullRef.java 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
NullQueue.java 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
ReferenceEnqueue.java 4243978: (ref) Race condition in Reference.enqueue() 2011-10-31 17:38:15 -07:00
ReferenceEnqueuePending.java 4243978: (ref) Race condition in Reference.enqueue() 2011-10-31 17:38:15 -07:00