mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8144621: CompilerControl: inline tests timeout with Xcomp
Restrict patterns that lead to timeout Reviewed-by: kvn, neliasso
This commit is contained in:
parent
cc370ff8f2
commit
0e441f9177
1 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,9 @@ public abstract class AbstractTestBase {
|
|||
for (int i = 0; !md.isValid() && i < ATTEMPTS; i++) {
|
||||
md = METHOD_GEN.generateRandomDescriptor(exec);
|
||||
}
|
||||
if (!md.isValid()) {
|
||||
System.out.println("WARN: Using predefined pattern");
|
||||
if (!md.isValid() || "any.method()".matches(md.getRegexp())) {
|
||||
/* if we haven't got a valid pattern or it matches any method
|
||||
leading to timeouts, then use plain standard descriptor */
|
||||
md = MethodGenerator.commandDescriptor(exec);
|
||||
}
|
||||
return md;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue