mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
Merge
This commit is contained in:
commit
d39293e00f
3 changed files with 13 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue