Skip to content

Commit f45d460

Browse files
author
Harold Seigel
committed
8265017: runtime/HiddenClasses/StressHiddenClasses.java timed out on Win* OCI
Reviewed-by: dholmes
1 parent 0136c89 commit f45d460

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/hotspot/jtreg/runtime/HiddenClasses/StressHiddenClasses.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
2727
* @requires !vm.graal.enabled
2828
* @library /test/lib
2929
* @modules jdk.compiler
30-
* @run main/othervm StressHiddenClasses
30+
* @run main/othervm/timeout=900 StressHiddenClasses
3131
*/
3232

3333
import java.lang.invoke.MethodType;
@@ -62,9 +62,13 @@ public void run() {
6262
}
6363
};
6464

65+
if (x % 1000 == 0) {
66+
System.out.println("Executing iteration: " + x);
67+
}
6568
parserThread.start();
6669
parserThread.join(PARSE_TIMEOUT);
6770

71+
// This code won't get executed as long as PARSE_TIMEOUT == 0.
6872
if (parserThread.isAlive()) {
6973
System.out.println("parser thread may be hung!");
7074
StackTraceElement[] stack = parserThread.getStackTrace();

0 commit comments

Comments
 (0)