comparison src/share/vm/c1/c1_GraphBuilder.cpp @ 7991:60bba1398c51

8005439: no message about inline method if it specifed by CompileCommand Reviewed-by: kvn, vlivanov Contributed-by: Igor Ignatyev <igor.ignatyev@oracle.com>
author vlivanov
date Fri, 01 Feb 2013 03:02:01 -0800
parents d92fa52a5d03
children 46f6f063b272
comparison
equal deleted inserted replaced
7990:fcc9e7681d63 7991:60bba1398c51
3665 if (is_profiling() && !callee->ensure_method_data()) { 3665 if (is_profiling() && !callee->ensure_method_data()) {
3666 INLINE_BAILOUT("mdo allocation failed"); 3666 INLINE_BAILOUT("mdo allocation failed");
3667 } 3667 }
3668 3668
3669 // now perform tests that are based on flag settings 3669 // now perform tests that are based on flag settings
3670 if (callee->force_inline() || callee->should_inline()) { 3670 if (callee->force_inline()) {
3671 // ignore heuristic controls on inlining 3671 print_inlining(callee, "force inline by annotation");
3672 if (callee->force_inline()) 3672 } else if (callee->should_inline()) {
3673 print_inlining(callee, "force inline by annotation"); 3673 print_inlining(callee, "force inline by CompileOracle");
3674 } else { 3674 } else {
3675 // use heuristic controls on inlining
3675 if (inline_level() > MaxInlineLevel ) INLINE_BAILOUT("inlining too deep"); 3676 if (inline_level() > MaxInlineLevel ) INLINE_BAILOUT("inlining too deep");
3676 if (recursive_inline_level(callee) > MaxRecursiveInlineLevel) INLINE_BAILOUT("recursive inlining too deep"); 3677 if (recursive_inline_level(callee) > MaxRecursiveInlineLevel) INLINE_BAILOUT("recursive inlining too deep");
3677 if (callee->code_size_for_inlining() > max_inline_size() ) INLINE_BAILOUT("callee is too large"); 3678 if (callee->code_size_for_inlining() > max_inline_size() ) INLINE_BAILOUT("callee is too large");
3678 3679
3679 // don't inline throwable methods unless the inlining tree is rooted in a throwable class 3680 // don't inline throwable methods unless the inlining tree is rooted in a throwable class