File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3636 * -XX:+UnlockDiagnosticVMOptions
3737 * -XX:+WhiteBoxAPI
3838 * -XX:CompileCommand=dontinline,TestConcurrentClose$SegmentAccessor::doAccess
39+ * -Xbatch
3940 * TestConcurrentClose
4041 */
4142
@@ -71,7 +72,7 @@ public class TestConcurrentClose {
7172
7273 static final int ITERATIONS = 5 ;
7374 static final int SEGMENT_SIZE = 10_000 ;
74- static final int MAX_EXECUTOR_WAIT_SECONDS = 20 ;
75+ static final int MAX_EXECUTOR_WAIT_SECONDS = 60 ;
7576 static final int NUM_ACCESSORS = 50 ;
7677
7778 static final AtomicLong start = new AtomicLong ();
@@ -176,13 +177,8 @@ static void start(String name) {
176177 }
177178
178179 private static void awaitCompilation () throws InterruptedException {
179- int retries = 0 ;
180180 while (WB .getMethodCompilationLevel (DO_ACCESS_METHOD , false ) != C2_COMPILED_LEVEL ) {
181- if (retries > 20 ) {
182- throw new IllegalStateException ("SegmentAccessor::doAccess method not being compiled" );
183- }
184181 Thread .sleep (1000 );
185- retries ++;
186182 }
187183 }
188184}
You can’t perform that action at this time.
0 commit comments