Skip to content

Commit 1be3557

Browse files
author
Roger Riggs
committed
8315721: CloseRace.java#id0 fails transiently on libgraal
Reviewed-by: lancea, jpai
1 parent 347bd15 commit 1be3557

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/jdk/java/lang/ProcessBuilder/CloseRace.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,22 @@
2323

2424
/**
2525
* @test
26-
* @bug 8024521
26+
* @bug 8024521 8315721
2727
* @summary Closing ProcessPipeInputStream at the time the process exits is racy
2828
* and leads to data corruption. Run this test manually (as
2929
* an ordinary java program) with -Xmx8M to repro bug 8024521.
3030
* @requires !vm.opt.final.ZGenerational
31+
* @comment Don't allow -Xcomp, it disturbs the timing
32+
* @requires (vm.compMode != "Xcomp")
3133
* @run main/othervm -Xmx8M -Dtest.duration=2 CloseRace
3234
*/
3335

3436
/**
3537
* @test
3638
* @comment Turn up heap size to lower amount of GCs
3739
* @requires vm.gc.Z & vm.opt.final.ZGenerational
40+
* @comment Don't allow -Xcomp, it disturbs the timing
41+
* @requires (vm.compMode != "Xcomp")
3842
* @run main/othervm -XX:+UseZGC -XX:+ZGenerational -Xmx32M -Dtest.duration=2 CloseRace
3943
*/
4044

0 commit comments

Comments
 (0)