changeset 9446 | 748a37b25d10 |
parent 9333 | 36b8f9661154 |
child 10262 | c5f62d314bee |
--- a/hotspot/src/share/vm/opto/graphKit.cpp Wed May 04 03:42:58 2011 -0700 +++ b/hotspot/src/share/vm/opto/graphKit.cpp Wed May 04 13:12:42 2011 -0700 @@ -3378,6 +3378,10 @@ if (UseLoopPredicate) { add_predicate_impl(Deoptimization::Reason_predicate, nargs); } + // loop's limit check predicate should be near the loop. + if (LoopLimitCheck) { + add_predicate_impl(Deoptimization::Reason_loop_limit_check, nargs); + } } //----------------------------- store barriers ----------------------------