Skip to content

Commit 81ed028

Browse files
committed
8337060: Test java/foreign/TestConcurrentClose.java failed: IllegalStateException: SegmentAccessor::doAccess method not being compiled
Reviewed-by: mcimadamore, alanb
1 parent e74edba commit 81ed028

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/jdk/java/foreign/TestConcurrentClose.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
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
}

0 commit comments

Comments
 (0)