|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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" (@see CompilerDNA) is associated with this choice? |
(package private) double |
getCost(NormalMethod meth)
What is the cost of executing this plan? |
(package private) double |
getFutureExecutionTime(int prevCompiler,
double futureTimeForMethod)
What is the benefit of executing this plan, 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)
| Method Detail |
|---|
double getCost(NormalMethod meth)
getCost in class RecompilationChoicemeth - The method being considered for recompilation.
double getFutureExecutionTime(int prevCompiler,
double futureTimeForMethod)
getFutureExecutionTime in class RecompilationChoiceprevCompiler - 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)
makeControllerPlan in class RecompilationChoicecmpMethod - The method in questionprevCompiler - The previous compilerprevTimeForMethod - The estimated future time had nothing been donebestActionTime - The estimated total time implementing this choiceexpectedCompilationTime - The expected time for recompiling
public String toString()
toString in class Objectint getOptLevel()
int getCompiler()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||