src/share/vm/opto/bytecodeInfo.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/opto/bytecodeInfo.cpp

src/share/vm/opto/bytecodeInfo.cpp

Print this page
rev 6447 : 8043413: REGRESSION: Hotspot causes segmentation fault in jdk8ux, but not in jdk7ux
Summary: long series of lambda form calls trigger stack overflow in c2
Reviewed-by:

*** 359,373 **** if (!C->do_inlining() && InlineAccessors) { set_msg("not an accessor"); 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; } else if (!C->inlining_incrementally()) { should_delay = true; --- 359,376 ---- if (!C->do_inlining() && InlineAccessors) { set_msg("not an accessor"); return false; } ! ! // Limit inlining depth in case inlining is forced or ! // _max_inline_level was increased to compensate for lambda forms. ! if (inline_level() > MaxForceInlineLevel) { set_msg("MaxForceInlineLevel"); return false; } + if (inline_level() > _max_inline_level) { if (!callee_method->force_inline() || !IncrementalInline) { set_msg("inlining too deep"); return false; } else if (!C->inlining_incrementally()) { should_delay = true;
src/share/vm/opto/bytecodeInfo.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File