8159620: -XX:-UseOnStackReplacement does not work together with -XX:+TieredCompilation on ppc64 and sparc

Reviewed-by: goetz, kvn, thartmann
This commit is contained in:
Volker Simonis 2016-06-22 17:05:40 +02:00
parent 9bea129ff7
commit 87f15c2bcf
4 changed files with 78 additions and 9 deletions

View file

@ -3435,7 +3435,7 @@ void LIRGenerator::increment_event_counter_impl(CodeEmitInfo* info,
__ 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);