RFR [8038333] java/lang/ref/EarlyTimeout.java failed

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Mar 26 13:15:09 UTC 2014


Hello!

The test java/lang/ref/EarlyTimeout.java, which has been recently added 
to the repository with the fix for 6853696 has failed.
The error message of the failure "more than one references were removed 
from queue" seems to be misguiding.

I suspect that the real cause of the failure could have been that both 
child thread failed to get the reference during the specified timeout.
Thus, nonNullRefCount may have been zero and not some value > 1.

Here's the trivial fix:
http://cr.openjdk.java.net/~igerasim/8038333/0/webrev/

Sincerely yours,
Ivan Gerasimov



More information about the core-libs-dev mailing list