File tree 1 file changed +6
-2
lines changed
test/hotspot/jtreg/runtime/HiddenClasses
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
27
27
* @requires !vm.graal.enabled
28
28
* @library /test/lib
29
29
* @modules jdk.compiler
30
- * @run main/othervm StressHiddenClasses
30
+ * @run main/othervm/timeout=900 StressHiddenClasses
31
31
*/
32
32
33
33
import java .lang .invoke .MethodType ;
@@ -62,9 +62,13 @@ public void run() {
62
62
}
63
63
};
64
64
65
+ if (x % 1000 == 0 ) {
66
+ System .out .println ("Executing iteration: " + x );
67
+ }
65
68
parserThread .start ();
66
69
parserThread .join (PARSE_TIMEOUT );
67
70
71
+ // This code won't get executed as long as PARSE_TIMEOUT == 0.
68
72
if (parserThread .isAlive ()) {
69
73
System .out .println ("parser thread may be hung!" );
70
74
StackTraceElement [] stack = parserThread .getStackTrace ();
You can’t perform that action at this time.
0 commit comments