RFR (XXS): 6771058: TEST_BUG: java/lang/ref/Basic.java may fail with -server -Xcomp
Christian Thalinger
christian.thalinger at oracle.com
Thu Oct 18 21:43:09 UTC 2012
http://cr.openjdk.java.net/~twisti/6771058
6771058: TEST_BUG: java/lang/ref/Basic.java may fail with -server -Xcomp
Reviewed-by:
This test can fail if finalizer of Basic is not called for some
reason. It happens in compiled mode if compilation is more slow than
execution of the main loop.
The fix is to call System.runFinalization() after System.gc() to
ensure that finalizer is run.
test/java/lang/ref/Basic.java
More information about the core-libs-dev
mailing list