@@ -2357,7 +2357,7 @@ void Compile::inline_vector_reboxing_calls() {
2357
2357
CallGenerator* cg = _vector_reboxing_late_inlines.pop ();
2358
2358
cg->do_late_inline ();
2359
2359
if (failing ()) return ;
2360
- print_method (PHASE_INLINE_VECTOR_REBOX, cg->call_node ());
2360
+ print_method (PHASE_INLINE_VECTOR_REBOX, cg->call_node (), 3 );
2361
2361
}
2362
2362
_vector_reboxing_late_inlines.trunc_to (0 );
2363
2363
}
@@ -4815,10 +4815,11 @@ void Compile::sort_macro_nodes() {
4815
4815
}
4816
4816
4817
4817
void Compile::print_method (CompilerPhaseType cpt, int level) {
4818
- print_method_impl (cpt, CompilerPhaseTypeHelper::to_string (cpt), level);
4818
+ print_method_impl (cpt, NOT_PRODUCT ( CompilerPhaseTypeHelper::to_string (cpt) COMMA) level);
4819
4819
}
4820
4820
4821
4821
void Compile::print_method (CompilerPhaseType cpt, Node* n, int level) {
4822
+ #ifndef PRODUCT
4822
4823
ResourceMark rm;
4823
4824
stringStream ss;
4824
4825
ss.print_raw (CompilerPhaseTypeHelper::to_string (cpt));
@@ -4827,10 +4828,11 @@ void Compile::print_method(CompilerPhaseType cpt, Node* n, int level) {
4827
4828
} else {
4828
4829
ss.print_raw (" : NULL" );
4829
4830
}
4830
- C->print_method_impl (cpt, ss.as_string (), level);
4831
+ #endif
4832
+ C->print_method_impl (cpt, NOT_PRODUCT (ss.as_string () COMMA) level);
4831
4833
}
4832
4834
4833
- void Compile::print_method_impl (CompilerPhaseType cpt, const char * name, int level) {
4835
+ void Compile::print_method_impl (CompilerPhaseType cpt, NOT_PRODUCT( const char * name COMMA) int level) {
4834
4836
EventCompilerPhase event;
4835
4837
if (event.should_commit ()) {
4836
4838
CompilerEvent::PhaseEvent::post (event, C->_latest_stage_start_counter , cpt, C->_compile_id , level);
0 commit comments