hotspot/src/share/vm/c1/c1_LIRGenerator.cpp
changeset 40030 274935bc5150
parent 39219 1b33aa56ed18
parent 40022 3eb9922d1a5b
child 41052 3362c4368286
child 40899 d7140c75c2c6
--- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp	Fri Jun 24 15:09:00 2016 -0700
+++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp	Fri Jun 24 15:30:50 2016 -0700
@@ -3434,7 +3434,7 @@
   __ load(counter, result);
   __ add(result, LIR_OprFact::intConst(InvocationCounter::count_increment), result);
   __ store(result, counter);
-  if (notify) {
+  if (notify && (!backedge || UseOnStackReplacement)) {
     LIR_Opr meth = LIR_OprFact::metadataConst(method->constant_encoding());
     // The bci for info can point to cmp for if's we want the if bci
     CodeStub* overflow = new CounterOverflowStub(info, bci, meth);