@@ -411,9 +411,6 @@ void CompilationPolicy::print_training_data_on(outputStream* st, const char* pr
411411
412412// Print an event.
413413void CompilationPolicy::print_event_on (outputStream *st, EventType type, Method* m, Method* im, int bci, CompLevel level) {
414-
415- if (level < CompLevel_full_optimization) return ;
416-
417414 bool inlinee_event = m != im;
418415
419416 st->print (" %lf: [" , os::elapsedTime ());
@@ -454,7 +451,7 @@ void CompilationPolicy::print_event_on(outputStream *st, EventType type, Method*
454451 st->print (" [%s" , method_name);
455452 if (inlinee_event) {
456453 char *inlinee_name = im->name_and_sig_as_C_string ();
457- st->print (" [inlinee %s]] " , inlinee_name);
454+ st->print (" [%s]] " , inlinee_name);
458455 }
459456 else st->print (" ] " );
460457 st->print (" @%d queues=%d,%d" , bci, CompileBroker::queue_size (CompLevel_full_profile),
@@ -502,11 +499,8 @@ void CompilationPolicy::print_event_on(outputStream *st, EventType type, Method*
502499 print_training_data_on (st, " inlinee " , im, level);
503500 }
504501 }
505-
506- if (im) {
507- im->method_data ()->print_on (st);
508- }
509502 st->print_cr (" ]" );
503+
510504}
511505
512506void CompilationPolicy::print_event (EventType type, Method* m, Method* im, int bci, CompLevel level) {
@@ -1383,7 +1377,7 @@ CompLevel CompilationPolicy::transition_from_limited_profile(const methodHandle&
13831377// Determine if a method should be compiled with a normal entry point at a different level.
13841378CompLevel CompilationPolicy::call_event (const methodHandle& method, CompLevel cur_level, JavaThread* THREAD ) {
13851379 CompLevel osr_level = MIN2 ((CompLevel) method->highest_osr_comp_level (), common<LoopPredicate>(method, cur_level, THREAD , true ));
1386- CompLevel next_level = common<CallPredicate>(method, cur_level, THREAD , is_old (method));
1380+ CompLevel next_level = common<CallPredicate>(method, cur_level, THREAD , ! TrainingData::have_data () && is_old (method));
13871381
13881382 // If OSR method level is greater than the regular method level, the levels should be
13891383 // equalized by raising the regular method level in order to avoid OSRs during each
0 commit comments