Mercurial > hg > graal-jvmci-8
diff src/cpu/x86/vm/c1_MacroAssembler_x86.hpp @ 3714:b648304ba4ff
Change Graal monitor enter and exit from BasicObjectLock to BasicLock
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 13 Dec 2011 21:17:46 -0800 |
parents | f95d63e2154a |
children | ce248dc0a656 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/c1_MacroAssembler_x86.hpp Tue Dec 13 21:16:50 2011 -0800 +++ b/src/cpu/x86/vm/c1_MacroAssembler_x86.hpp Tue Dec 13 21:17:46 2011 -0800 @@ -51,13 +51,13 @@ // disp_hdr: must point to the displaced header location, contents preserved // scratch : scratch register, contents destroyed // returns code offset at which to add null check debug information - int lock_object (Register swap, Register obj, Register disp_hdr, Register scratch, Label& slow_case); + int lock_object (Register swap, Register obj, Register disp_hdr, Register scratch, Label& slow_case, bool use_basic_object_lock = true); // unlocking // hdr : contents destroyed // obj : must point to the object to lock, contents preserved // disp_hdr: must be eax & must point to the displaced header location, contents destroyed - void unlock_object(Register swap, Register obj, Register lock, Label& slow_case); + void unlock_object(Register swap, Register obj, Register lock, Label& slow_case, bool use_basic_object_lock = true); void initialize_object( Register obj, // result: pointer to object after successful allocation