equal
deleted
inserted
replaced
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_SYNCHRONIZER_HPP |
|
26 #define SHARE_VM_RUNTIME_SYNCHRONIZER_HPP |
|
27 |
|
28 #include "oops/markOop.hpp" |
|
29 #include "runtime/basicLock.hpp" |
|
30 #include "runtime/handles.hpp" |
|
31 #include "runtime/perfData.hpp" |
|
32 #include "utilities/top.hpp" |
24 |
33 |
25 |
34 |
26 class ObjectMonitor; |
35 class ObjectMonitor; |
27 |
36 |
28 class ObjectSynchronizer : AllStatic { |
37 class ObjectSynchronizer : AllStatic { |
151 // complete_exit gives up lock completely, returning recursion count |
160 // complete_exit gives up lock completely, returning recursion count |
152 // reenter reclaims lock with original recursion count |
161 // reenter reclaims lock with original recursion count |
153 intptr_t complete_exit(TRAPS) { return ObjectSynchronizer::complete_exit(_obj, CHECK_0); } |
162 intptr_t complete_exit(TRAPS) { return ObjectSynchronizer::complete_exit(_obj, CHECK_0); } |
154 void reenter(intptr_t recursion, TRAPS) { ObjectSynchronizer::reenter(_obj, recursion, CHECK); } |
163 void reenter(intptr_t recursion, TRAPS) { ObjectSynchronizer::reenter(_obj, recursion, CHECK); } |
155 }; |
164 }; |
|
165 |
|
166 #endif // SHARE_VM_RUNTIME_SYNCHRONIZER_HPP |