This recently added test was found to fail under some conditions -
namely client compiler with -Xcomp. It seems that the use of all local
variables enabled the compiler to optimize things in a way that stopped
the weakref from being enqueued as expected. Simple fix was to make the
weakref a field.
http://cr.openjdk.java.net/~dholmes/8016341/webrev/
Thanks,
David