src/cpu/x86/vm/c1_MacroAssembler_x86.cpp

Print this page

        

*** 20,31 **** * or visit www.oracle.com if you need additional information or have any * questions. * */ ! #include "incls/_precompiled.incl" ! #include "incls/_c1_MacroAssembler_x86.cpp.incl" int C1_MacroAssembler::lock_object(Register hdr, Register obj, Register disp_hdr, Register scratch, Label& slow_case) { const int aligned_mask = BytesPerWord -1; const int hdr_offset = oopDesc::mark_offset_in_bytes(); assert(hdr == rax, "hdr must be rax, for the cmpxchg instruction"); --- 20,41 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ ! #include "precompiled.hpp" ! #include "c1/c1_MacroAssembler.hpp" ! #include "c1/c1_Runtime1.hpp" ! #include "classfile/systemDictionary.hpp" ! #include "gc_interface/collectedHeap.hpp" ! #include "interpreter/interpreter.hpp" ! #include "oops/arrayOop.hpp" ! #include "oops/markOop.hpp" ! #include "runtime/biasedLocking.hpp" ! #include "runtime/os.hpp" ! #include "runtime/stubRoutines.hpp" ! #include "runtime/synchronizer.hpp" int C1_MacroAssembler::lock_object(Register hdr, Register obj, Register disp_hdr, Register scratch, Label& slow_case) { const int aligned_mask = BytesPerWord -1; const int hdr_offset = oopDesc::mark_offset_in_bytes(); assert(hdr == rax, "hdr must be rax, for the cmpxchg instruction");