hotspot/src/cpu/x86/vm/c1_MacroAssembler_x86.cpp
changeset 29081 c61eb4914428
parent 24018 77b156916bab
child 30305 b92a97e1e9cb
equal deleted inserted replaced
29080:a16b0d9a08f5 29081:c61eb4914428
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    31 #include "oops/arrayOop.hpp"
    31 #include "oops/arrayOop.hpp"
    32 #include "oops/markOop.hpp"
    32 #include "oops/markOop.hpp"
    33 #include "runtime/basicLock.hpp"
    33 #include "runtime/basicLock.hpp"
    34 #include "runtime/biasedLocking.hpp"
    34 #include "runtime/biasedLocking.hpp"
    35 #include "runtime/os.hpp"
    35 #include "runtime/os.hpp"
       
    36 #include "runtime/sharedRuntime.hpp"
    36 #include "runtime/stubRoutines.hpp"
    37 #include "runtime/stubRoutines.hpp"
    37 
    38 
    38 int C1_MacroAssembler::lock_object(Register hdr, Register obj, Register disp_hdr, Register scratch, Label& slow_case) {
    39 int C1_MacroAssembler::lock_object(Register hdr, Register obj, Register disp_hdr, Register scratch, Label& slow_case) {
    39   const int aligned_mask = BytesPerWord -1;
    40   const int aligned_mask = BytesPerWord -1;
    40   const int hdr_offset = oopDesc::mark_offset_in_bytes();
    41   const int hdr_offset = oopDesc::mark_offset_in_bytes();