src/share/vm/runtime/biasedLocking.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 20,29 ****
--- 20,35 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
+ #ifndef SHARE_VM_RUNTIME_BIASEDLOCKING_HPP
+ #define SHARE_VM_RUNTIME_BIASEDLOCKING_HPP
+
+ #include "runtime/handles.hpp"
+ #include "utilities/growableArray.hpp"
+
// This class describes operations to implement Store-Free Biased
// Locking. The high-level properties of the scheme are similar to
// IBM's lock reservation, Dice-Moir-Scherer QR locks, and other biased
// locking mechanisms. The principal difference is in the handling of
// recursive locking which is how this technique achieves a more
*** 183,187 ****
--- 189,195 ----
// users. GCs which do not do preservation of mark words do not need
// to call these routines.
static void preserve_marks();
static void restore_marks();
};
+
+ #endif // SHARE_VM_RUNTIME_BIASEDLOCKING_HPP