--- old/src/hotspot/share/opto/compile.hpp 2020-05-11 18:24:47.001661237 -0700 +++ new/src/hotspot/share/opto/compile.hpp 2020-05-11 18:24:46.801653708 -0700 @@ -631,25 +631,7 @@ #endif } - void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0) { - EventCompilerPhase event; - if (event.should_commit()) { - CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, cpt, C->_compile_id, level); - } - -#ifndef PRODUCT - if (should_print(level)) { - char output[1024]; - if (idx != 0) { - jio_snprintf(output, sizeof(output), "%s:%d", CompilerPhaseTypeHelper::to_string(cpt), idx); - } else { - jio_snprintf(output, sizeof(output), "%s", CompilerPhaseTypeHelper::to_string(cpt)); - } - _printer->print_method(output, level); - } -#endif - C->_latest_stage_start_counter.stamp(); - } + inline void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0); #ifndef PRODUCT void igv_print_method_to_file(const char* phase_name = "Debug", bool append = false); @@ -658,18 +640,7 @@ static IdealGraphPrinter* debug_network_printer() { return _debug_network_printer; } #endif - void end_method(int level = 1) { - EventCompilerPhase event; - if (event.should_commit()) { - CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, PHASE_END, C->_compile_id, level); - } - -#ifndef PRODUCT - if (_printer && _printer->should_print(level)) { - _printer->end_method(); - } -#endif - } + inline void end_method(int level = 1); int macro_count() const { return _macro_nodes->length(); } int predicate_count() const { return _predicate_opaqs->length();}