mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8152358: code and comment cleanups found during the hunt for 8077392
Reviewed-by: gthornbr, kvn, cvarming
This commit is contained in:
parent
66570c722b
commit
2e87e3178c
8 changed files with 71 additions and 43 deletions
|
@ -1099,7 +1099,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg) {
|
|||
movptr(Address(lock_reg, mark_offset), swap_reg);
|
||||
|
||||
assert(lock_offset == 0,
|
||||
"displached header must be first word in BasicObjectLock");
|
||||
"displaced header must be first word in BasicObjectLock");
|
||||
|
||||
if (os::is_MP()) lock();
|
||||
cmpxchgptr(lock_reg, Address(obj_reg, 0));
|
||||
|
@ -1154,7 +1154,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg) {
|
|||
// Kills:
|
||||
// rax
|
||||
// c_rarg0, c_rarg1, c_rarg2, c_rarg3, ... (param regs)
|
||||
// rscratch1, rscratch2 (scratch regs)
|
||||
// rscratch1 (scratch reg)
|
||||
// rax, rbx, rcx, rdx
|
||||
void InterpreterMacroAssembler::unlock_object(Register lock_reg) {
|
||||
assert(lock_reg == LP64_ONLY(c_rarg1) NOT_LP64(rdx),
|
||||
|
@ -1201,7 +1201,7 @@ void InterpreterMacroAssembler::unlock_object(Register lock_reg) {
|
|||
if (os::is_MP()) lock();
|
||||
cmpxchgptr(header_reg, Address(obj_reg, 0));
|
||||
|
||||
// zero for recursive case
|
||||
// zero for simple unlock of a stack-lock case
|
||||
jcc(Assembler::zero, done);
|
||||
|
||||
// Call the runtime routine for slow case.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue