|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.adaptive.controller.RecompilationChoice org.jikesrvm.adaptive.controller.RecompileOptChoice
class RecompileOptChoice
Represents the recompilation choice of simply recompiling the method in question at a particular opt-level. The cost is the expected compilation time at that level, and the benefit is the execution improvement of executing at that level.
Field Summary | |
---|---|
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 Summary | |
---|---|
RecompileOptChoice(int level)
Constructor |
Method Summary | |
---|---|
(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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int thisChoiceOptLevel
private int thisChoiceCompiler
Constructor Detail |
---|
RecompileOptChoice(int level)
level
- the opt level associated with this choiceMethod Detail |
---|
double 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 choice
public String toString()
toString
in class Object
int getOptLevel()
int getCompiler()
CompilerDNA.getCompilerConstant(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |