RFR (XXS): 6771058: TEST_BUG: java/lang/ref/Basic.java may fail with -server -Xcomp (original) (raw)

Mandy Chung mandy.chung at oracle.com
Thu Oct 18 22:31:34 UTC 2012


Hi Christian,

Thanks for taking on this bug.

Just curious - the test runs with a max of 10 GCs. You reproduced this bug on a slower machine with fastdebug build. If you increase the max number of GCs, I wonder how long the test will take to complete/pass?

With your fix, how many GC does it take to complete? I suspect it's one. I am guessing that the test might want to test that the finalizers are being invoked during GC and references are dequeued. I wonder if there is another alternate fix instead of forcing the finalizers to be run. Just a thought.

Mandy

On 10/18/2012 2:43 PM, Christian Thalinger wrote:

http://cr.openjdk.java.net/~twisti/6771058

6771058: TESTBUG: 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