Skip to content

Commit d630516

Browse files
committed
[GR-55104] Ignore transiently-hanging test
PullRequest: graal/18238
2 parents 80c2051 + 27ef6d8 commit d630516

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/TruffleSafepointTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
import org.junit.Assume;
8989
import org.junit.Before;
9090
import org.junit.BeforeClass;
91+
import org.junit.Ignore;
9192
import org.junit.Rule;
9293
import org.junit.Test;
9394
import org.junit.rules.TestName;
@@ -1701,6 +1702,7 @@ public boolean call(TestSetup s, TestRootNode node) {
17011702
}
17021703
}
17031704

1705+
@Ignore("GR-55104: transiently hangs")
17041706
@Test
17051707
public void testDeadlockDueToTooFewCarrierThreads() {
17061708
Assume.assumeTrue(vthreads);
@@ -1850,7 +1852,7 @@ static class TestRootNode extends RootNode {
18501852
@SuppressWarnings("unchecked")
18511853
@Override
18521854
public Object execute(VirtualFrame frame) {
1853-
waitForLatch(latch);
1855+
barrier(latch);
18541856
do {
18551857
Boolean result = callable.call(setup, this);
18561858
if (result) {
@@ -1957,6 +1959,9 @@ private TestSetup setupSafepointLoop(int threads, NodeCallable callable, Consume
19571959
return setup;
19581960
} catch (Throwable t) {
19591961
if (setup != null && setup.futures != null) {
1962+
// Print it now, because if some futures also fail they would override the current
1963+
// exception
1964+
t.printStackTrace();
19601965
setup.close();
19611966
} else {
19621967
c.close();
@@ -2039,8 +2044,9 @@ protected Context createTestContext() {
20392044
private ByteArrayOutputStream outputStream;
20402045

20412046
@TruffleBoundary
2042-
private static void waitForLatch(CountDownLatch latch) throws AssertionError {
2047+
private static void barrier(CountDownLatch latch) throws AssertionError {
20432048
latch.countDown();
2049+
20442050
boolean interrupted = false;
20452051
while (true) {
20462052
try {

0 commit comments

Comments
 (0)