public final class InvocationCounts extends Object
Modifier and Type | Field and Description |
---|---|
private static OptOptions |
_options |
private static OptimizationPlanElement[] |
_optPlan |
private static int[] |
counts |
private static boolean[] |
processed |
Constructor and Description |
---|
InvocationCounts() |
Modifier and Type | Method and Description |
---|---|
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) |
static CompilationPlan |
createCompilationPlan(NormalMethod method,
AOSInstrumentationPlan instPlan) |
(package private) static void |
createOptimizationPlan()
Create the default set of <optimization plan, options> pairs
Process optimizing compiler command line options.
|
static void |
init()
Initialize the recompilation strategy.
|
private static int[] counts
private static boolean[] processed
private static OptimizationPlanElement[] _optPlan
private static OptOptions _options
public InvocationCounts()
public static void allocateCounter(int id)
static void counterTripped(int id)
id
- the compiled method idpublic 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()