7112085: assert(fr.interpreter_frame_expression_stack_size()==0) failed: only handle empty stacks

Move the inlinee invoke notification callback into inlinee preamble

Reviewed-by: kvn, never
This commit is contained in:
Igor Veresov 2011-11-16 19:42:58 -08:00
parent 8d2ee23293
commit b6ce13798b
6 changed files with 31 additions and 24 deletions

View file

@ -429,7 +429,7 @@ CodeEmitInfo* LIRGenerator::state_for(Instruction* x, ValueStack* state, bool ig
// all locals are dead on exit from the synthetic unlocker
liveness.clear();
} else {
assert(x->as_MonitorEnter(), "only other case is MonitorEnter");
assert(x->as_MonitorEnter() || x->as_ProfileInvoke(), "only other cases are MonitorEnter and ProfileInvoke");
}
}
if (!liveness.is_valid()) {