6771058: TEST_BUG: java/lang/ref/Basic.java may fail with -server -Xcomp
authortwisti
Mon, 22 Oct 2012 14:22:30 -0700
changeset 14201 7f1e988a92ea
parent 14200 9363b1893533
child 14202 159b750b93c3
6771058: TEST_BUG: java/lang/ref/Basic.java may fail with -server -Xcomp Reviewed-by: dholmes, mchung
jdk/test/java/lang/ref/Basic.java
--- a/jdk/test/java/lang/ref/Basic.java	Mon Oct 22 17:01:35 2012 +0800
+++ b/jdk/test/java/lang/ref/Basic.java	Mon Oct 22 14:22:30 2012 -0700
@@ -105,6 +105,7 @@
             System.err.println("GC " + i);
             Thread.sleep(10);
             System.gc();
+            System.runFinalization();
 
             showReferences();
             while ((r = q2.poll()) != null) {