8139700: compiler/jvmci/compilerToVM/DisassembleCodeBlobTest and InvalidateInstalledCodeTest timeout

Reviewed-by: kvn
This commit is contained in:
Dmitrij Pochepko 2016-08-20 00:15:45 +03:00
parent ebb0356d35
commit 1c5cc2ccdf
3 changed files with 7 additions and 2 deletions

View file

@ -107,6 +107,12 @@ public class CompileCodeTestCase {
}
public NMethod compile(int level) {
String directive = "[{ match: \"" + executable.getDeclaringClass().getName().replace('.', '/')
+ "." + (executable instanceof Constructor ? "<init>" : executable.getName())
+ "\", " + "BackgroundCompilation: false }]";
if (WB.addCompilerDirective(directive) != 1) {
throw new Error("Failed to add compiler directive: " + directive);
}
boolean enqueued = WB.enqueueMethodForCompilation(executable,
level, bci);
if (!enqueued) {