use of org.jikesrvm.adaptive.util.AOSOptions in project JikesRVM by JikesRVM.
the class ControllerThread method createOrganizerThreads.
/**
* Create the organizerThreads and schedule them
*/
private void createOrganizerThreads() {
AOSOptions opts = Controller.options;
if (opts.sampling()) {
// Primary backing store for method sample data
Controller.methodSamples = new MethodCountData();
// Install organizer to drive method recompilation
Controller.organizers.add(new MethodSampleOrganizer(opts.DERIVED_FILTER_OPT_LEVEL));
// Additional set up for feedback directed inlining
if (opts.ADAPTIVE_INLINING) {
Organizer decayOrganizer = new DecayOrganizer(new YieldCounterListener(opts.DECAY_FREQUENCY));
Controller.organizers.add(decayOrganizer);
createDynamicCallGraphOrganizer();
}
}
if ((!opts.ENABLE_PRECOMPILE) && (!opts.ENABLE_BULK_COMPILE)) {
Controller.osrOrganizer = new OSROrganizerThread();
Controller.osrOrganizer.start();
}
}
Aggregations