class RecompileOptChoice extends RecompilationChoice
Modifier and Type | Field and Description |
---|---|
private int |
thisChoiceCompiler
The "compiler" (see CompilerDNA) that is associated with this choice
|
private int |
thisChoiceOptLevel
The opt level associated with this recompilation choice
|
Constructor and Description |
---|
RecompileOptChoice(int level)
Constructor
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
getCompiler()
Which "compiler" is associated with this choice?
|
(package private) double |
getCost(NormalMethod meth)
What is the cost of selecting this recompilation choice?
|
(package private) double |
getFutureExecutionTime(int prevCompiler,
double futureTimeForMethod)
What is the benefit of executing this recompilation choice, given
the estimated future time for the method if nothing changes?
|
(package private) int |
getOptLevel()
Which opt-level is associated with this choice?
|
(package private) ControllerPlan |
makeControllerPlan(CompiledMethod cmpMethod,
int prevCompiler,
double prevTimeForMethod,
double bestActionTime,
double expectedCompilationTime)
Return a controller plan that will start this recompilation choice
in action.
|
String |
toString()
How should this choice be displayed?
|
private final int thisChoiceOptLevel
private final int thisChoiceCompiler
RecompileOptChoice(int level)
level
- the opt level associated with this choicedouble getCost(NormalMethod meth)
RecompilationChoice
getCost
in class RecompilationChoice
meth
- The method being considered for recompilation.double getFutureExecutionTime(int prevCompiler, double futureTimeForMethod)
RecompilationChoice
getFutureExecutionTime
in class RecompilationChoice
prevCompiler
- The previous compilerfutureTimeForMethod
- The expected future execution time of
the method if left running with the previous compiler.ControllerPlan makeControllerPlan(CompiledMethod cmpMethod, int prevCompiler, double prevTimeForMethod, double bestActionTime, double expectedCompilationTime)
thisChoiceOptLevel
.makeControllerPlan
in class RecompilationChoice
cmpMethod
- The method in questionprevCompiler
- The previous compilerprevTimeForMethod
- The estimated future time had nothing been donebestActionTime
- The estimated total time implementing this choiceexpectedCompilationTime
- The estimated compilation cost implementing this choiceint getOptLevel()
int getCompiler()
CompilerDNA.getCompilerConstant(int)