changeset 420:6510f53ebe89

Further tune-ups for interrupt.WeakReferenceTest for concurrent GCs
author shade
date Sun, 04 Nov 2018 21:12:28 +0100
parents ea0195854007
children 3c94746a6abf
files tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/WeakReferenceTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/WeakReferenceTest.java	Sat Nov 03 21:24:27 2018 +0100
+++ b/tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/WeakReferenceTest.java	Sun Nov 04 21:12:28 2018 +0100
@@ -70,7 +70,7 @@
         // Need to have something to work on before GC has any chance to react.
         // This is especially important for SATB-style GCs like G1 and Shenandoah.
         long t = sink;
-        for (long i = 1_000_000; i > 0; i--) {
+        for (long i = 100_000_000; i > 0; i--) {
             t += (t * 0x5DEECE66DL + 0xBL + i) & (0xFFFFFFFFFFFFL);
         }
         if (t == 42) {
@@ -85,7 +85,7 @@
         // should eventually complete, not testing here
         while (refQueue.poll() != ref) {
             System.gc();
-            TimeUnit.MILLISECONDS.sleep(10);
+            TimeUnit.MILLISECONDS.sleep(100);
         }
     }