8138895: C1: PPC64 Port needs special register for Locks in synchronization code

Reviewed-by: vlivanov, goetz
This commit is contained in:
Martin Doerr 2015-10-05 23:50:43 +02:00
parent 28115bceae
commit f6cb49ba48
5 changed files with 8 additions and 4 deletions

View file

@ -2802,7 +2802,7 @@ void LIRGenerator::do_Base(Base* x) {
assert(obj->is_valid(), "must be valid");
if (method()->is_synchronized() && GenerateSynchronizationCode) {
LIR_Opr lock = new_register(T_INT);
LIR_Opr lock = syncLockOpr();
__ load_stack_address_monitor(0, lock);
CodeEmitInfo* info = new CodeEmitInfo(scope()->start()->state()->copy(ValueStack::StateBefore, SynchronizationEntryBCI), NULL, x->check_flag(Instruction::DeoptimizeOnException));