Skip to content

Commit 6e1da64

Browse files
mychrisKim Barrett
authored andcommitted
8270908: TestParallelRefProc fails on single core machines
Reviewed-by: tschatzl, kbarrett
1 parent f1e15c8 commit 6e1da64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/hotspot/jtreg/gc/arguments/TestParallelRefProc.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public static void main(String args[]) throws Exception {
5151
}
5252
if (GC.Parallel.isSupported()) {
5353
noneGCSupported = false;
54-
testFlag(new String[] { "-XX:+UseParallelGC" }, true);
54+
testFlag(new String[] { "-XX:+UseParallelGC", "-XX:ParallelGCThreads=1" }, false);
55+
testFlag(new String[] { "-XX:+UseParallelGC", "-XX:ParallelGCThreads=2" }, true);
56+
testFlag(new String[] { "-XX:+UseParallelGC", "-XX:-ParallelRefProcEnabled", "-XX:ParallelGCThreads=2" }, false);
5557
}
5658
if (GC.G1.isSupported()) {
5759
noneGCSupported = false;

0 commit comments

Comments
 (0)