comparison src/share/vm/opto/bytecodeInfo.cpp @ 17966:73c839dda17e

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: kvn, vlivanov
author roland
date Mon, 02 Jun 2014 10:01:15 +0200
parents 1419657ed891
children 52b4284cb496 1de115720e74
comparison
equal deleted inserted replaced
17964:660b3f6bf7d7 17966:73c839dda17e
359 359
360 if (!C->do_inlining() && InlineAccessors) { 360 if (!C->do_inlining() && InlineAccessors) {
361 set_msg("not an accessor"); 361 set_msg("not an accessor");
362 return false; 362 return false;
363 } 363 }
364
365 // Limit inlining depth in case inlining is forced or
366 // _max_inline_level was increased to compensate for lambda forms.
367 if (inline_level() > MaxForceInlineLevel) {
368 set_msg("MaxForceInlineLevel");
369 return false;
370 }
364 if (inline_level() > _max_inline_level) { 371 if (inline_level() > _max_inline_level) {
365 if (callee_method->force_inline() && inline_level() > MaxForceInlineLevel) {
366 set_msg("MaxForceInlineLevel");
367 return false;
368 }
369 if (!callee_method->force_inline() || !IncrementalInline) { 372 if (!callee_method->force_inline() || !IncrementalInline) {
370 set_msg("inlining too deep"); 373 set_msg("inlining too deep");
371 return false; 374 return false;
372 } else if (!C->inlining_incrementally()) { 375 } else if (!C->inlining_incrementally()) {
373 should_delay = true; 376 should_delay = true;