|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.adaptive.recompilation.InvocationCounts
public final class InvocationCounts
Runtime system support for using invocation counters in baseline compiled code to select methods for optimizing recompilation by the adaptive system. Bypasses the normal controller logic: If an invocation counter trips, then the method is enqueued for recompilation at a default optimization level.
Field Summary | |
---|---|
private static OptOptions |
_options
|
private static OptimizationPlanElement[] |
_optPlan
|
private static int[] |
counts
|
private static boolean[] |
processed
|
Constructor Summary | |
---|---|
InvocationCounts()
|
Method Summary | |
---|---|
static void |
allocateCounter(int id)
|
(package private) static void |
counterTripped(int id)
Called from baseline compiled code when a method's invocation counter becomes negative and thus must be handled |
static CompilationPlan |
createCompilationPlan(NormalMethod method)
Create the compilation plan according to the default set of <optimization plan, options> pairs |
static CompilationPlan |
createCompilationPlan(NormalMethod method,
AOSInstrumentationPlan instPlan)
|
(package private) static void |
createOptimizationPlan()
Create the default set of |
static void |
init()
Initialize the recompilation strategy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int[] counts
private static boolean[] processed
private static OptimizationPlanElement[] _optPlan
private static OptOptions _options
Constructor Detail |
---|
public InvocationCounts()
Method Detail |
---|
public static void allocateCounter(int id)
static void counterTripped(int id)
public static CompilationPlan createCompilationPlan(NormalMethod method)
public static CompilationPlan createCompilationPlan(NormalMethod method, AOSInstrumentationPlan instPlan)
public static void init()
Note: This uses the command line options to set up the optimization plans, so this must be run after the command line options are available.
static void createOptimizationPlan()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |