public class CompilationTask extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CompilationTask.Lazy |
Modifier and Type | Field and Description |
---|---|
private static DebugMetric |
BAILOUTS |
static DebugTimer |
CodeInstallationTime |
private static DebugTimer |
CompilationTime
Time spent in compilation.
|
private static DebugMetric |
CompiledBytecodes
Meters the bytecodes compiled.
|
private static Compiler |
compiler |
private int |
entryBCI |
private static EventProvider |
eventProvider |
private int |
id |
private boolean |
installAsDefault
Specifies whether the compilation result is installed as the
default nmethod for the compiled method.
|
private long |
jvmciEnv
The address of the JVMCIEnv associated with this compilation or 0L if no such object exists.
|
private HotSpotResolvedJavaMethod |
method |
Constructor and Description |
---|
CompilationTask(HotSpotResolvedJavaMethod method,
int entryBCI,
long jvmciEnv,
int id,
boolean installAsDefault) |
Modifier and Type | Method and Description |
---|---|
static void |
compileMethod(HotSpotResolvedJavaMethod method,
int entryBCI,
long jvmciEnv,
int id)
Compiles a method to machine code.
|
int |
getEntryBCI() |
int |
getId()
Returns the compilation id of this task.
|
ResolvedJavaMethod |
getMethod() |
private String |
getMethodDescription() |
private InstalledCode |
installMethod(CompilationResult compResult) |
private boolean |
mustRecordMethodInlining(HotSpotVMConfig config)
Determines whether to disable method inlining recording for the method being compiled.
|
void |
runCompilation() |
String |
toString() |
private static final DebugMetric BAILOUTS
private static final EventProvider eventProvider
private final HotSpotResolvedJavaMethod method
private final int entryBCI
private final int id
private final boolean installAsDefault
private final long jvmciEnv
private static final DebugTimer CompilationTime
private static final DebugMetric CompiledBytecodes
public static final DebugTimer CodeInstallationTime
public CompilationTask(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id, boolean installAsDefault)
public ResolvedJavaMethod getMethod()
public int getId()
public int getEntryBCI()
public void runCompilation()
private boolean mustRecordMethodInlining(HotSpotVMConfig config)
private String getMethodDescription()
private InstalledCode installMethod(CompilationResult compResult)
public static void compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id)