Skip to content

Commit 4f355c3

Browse files
committed
8307653: Adjust delay time and gc log argument in TestAbortOnVMOperationTimeout
Reviewed-by: dholmes, dcubed
1 parent 1535863 commit 4f355c3

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
* @requires vm.flagless
3232
* @library /test/lib
@@ -51,11 +51,9 @@ public static void main(String[] args) throws Exception {
5151
return;
5252
}
5353

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

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

0 commit comments

Comments
 (0)