hotspot/src/share/vm/runtime/basicLock.hpp
changeset 7397 5b173b4ca846
parent 6975 dc9b63952682
child 35123 b0b89d83bcf5
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2010, 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.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #ifndef SHARE_VM_RUNTIME_BASICLOCK_HPP
       
    26 #define SHARE_VM_RUNTIME_BASICLOCK_HPP
       
    27 
       
    28 #include "oops/markOop.hpp"
       
    29 #include "runtime/handles.hpp"
       
    30 #include "utilities/top.hpp"
    24 
    31 
    25 class BasicLock VALUE_OBJ_CLASS_SPEC {
    32 class BasicLock VALUE_OBJ_CLASS_SPEC {
    26   friend class VMStructs;
    33   friend class VMStructs;
    27  private:
    34  private:
    28   volatile markOop _displaced_header;
    35   volatile markOop _displaced_header;
    68 
    75 
    69   static int obj_offset_in_bytes()                    { return offset_of(BasicObjectLock, _obj);  }
    76   static int obj_offset_in_bytes()                    { return offset_of(BasicObjectLock, _obj);  }
    70   static int lock_offset_in_bytes()                   { return offset_of(BasicObjectLock, _lock); }
    77   static int lock_offset_in_bytes()                   { return offset_of(BasicObjectLock, _lock); }
    71 };
    78 };
    72 
    79 
       
    80 
       
    81 #endif // SHARE_VM_RUNTIME_BASICLOCK_HPP