diff src/share/vm/opto/bytecodeInfo.cpp @ 13081:e74074c34312

8028159: C2: compiler stack overflow during inlining of @ForceInline methods Reviewed-by: roland, kvn
author vlivanov
date Thu, 14 Nov 2013 09:14:39 -0800
parents 0c4c40f5c399
children 096c224171c4 de6a9e811145
line wrap: on
line diff
--- a/src/share/vm/opto/bytecodeInfo.cpp	Wed Nov 13 13:45:50 2013 +0100
+++ b/src/share/vm/opto/bytecodeInfo.cpp	Thu Nov 14 09:14:39 2013 -0800
@@ -389,6 +389,10 @@
     return false;
   }
   if (inline_level() > _max_inline_level) {
+    if (callee_method->force_inline() && inline_level() > MaxForceInlineLevel) {
+      set_msg("MaxForceInlineLevel");
+      return false;
+    }
     if (!callee_method->force_inline() || !IncrementalInline) {
       set_msg("inlining too deep");
       return false;