diff src/share/vm/c1/c1_GraphBuilder.cpp @ 12975:0d1661d63d70

8012941: JSR 292: too deep inlining might crash compiler because of stack overflow Reviewed-by: kvn, twisti
author vlivanov
date Wed, 23 Oct 2013 20:20:03 +0400
parents 5ccbab1c69f3
children 4d3575d37a07
line wrap: on
line diff
--- a/src/share/vm/c1/c1_GraphBuilder.cpp	Wed Oct 23 20:15:24 2013 +0400
+++ b/src/share/vm/c1/c1_GraphBuilder.cpp	Wed Oct 23 20:20:03 2013 +0400
@@ -3768,6 +3768,7 @@
 
   // now perform tests that are based on flag settings
   if (callee->force_inline()) {
+    if (inline_level() > MaxForceInlineLevel) INLINE_BAILOUT("MaxForceInlineLevel");
     print_inlining(callee, "force inline by annotation");
   } else if (callee->should_inline()) {
     print_inlining(callee, "force inline by CompileOracle");