Skip to content

Commit b5f27f9

Browse files
committed
8307653: Adjust delay time and gc log argument in TestAbortOnVMOperationTimeout
Backport-of: 4f355c3525072681ed1fb48dfdb8924b1cf0cc7c
1 parent b640436 commit b5f27f9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/hotspot/jtreg/runtime/Safepoint/TestAbortOnVMOperationTimeout.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/*
2828
* @test TestAbortOnVMOperationTimeout
29-
* @bug 8181143 8269523
29+
* @bug 8181143 8269523 8307653
3030
* @summary Check abort on VM timeout is working
3131
* @library /test/lib
3232
* @modules java.base/jdk.internal.misc
@@ -50,11 +50,9 @@ public static void main(String[] args) throws Exception {
5050
return;
5151
}
5252

53-
// These should definitely pass: more than a minute is enough for Serial to act.
54-
// The values are deliberately non-round to trip off periodic task granularity.
55-
for (int delay : new int[]{63423, 12388131}) {
56-
testWith(delay, true);
57-
}
53+
// This should definitely pass: more than 3 minutes is enough for Serial to act.
54+
// The value is deliberately non-round to trip off periodic task granularity.
55+
testWith(183423, true);
5856

5957
// These should fail: Serial is not very fast but we have seen the test
6058
// execute as quickly as 2ms!
@@ -71,7 +69,7 @@ public static void testWith(int delay, boolean shouldPass) throws Exception {
7169
"-Xmx256m",
7270
"-XX:+UseSerialGC",
7371
"-XX:-CreateCoredumpOnCrash",
74-
"-Xlog:gc",
72+
"-Xlog:gc*=info",
7573
"TestAbortOnVMOperationTimeout",
7674
"foo"
7775
);

0 commit comments

Comments
 (0)