1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2018, 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. |
159 void wait (TRAPS) { ObjectSynchronizer::wait (_obj, 0, CHECK); } // wait forever |
159 void wait (TRAPS) { ObjectSynchronizer::wait (_obj, 0, CHECK); } // wait forever |
160 void notify_all(TRAPS) { ObjectSynchronizer::notifyall(_obj, CHECK); } |
160 void notify_all(TRAPS) { ObjectSynchronizer::notifyall(_obj, CHECK); } |
161 void waitUninterruptibly (TRAPS) { ObjectSynchronizer::waitUninterruptibly (_obj, 0, CHECK);} |
161 void waitUninterruptibly (TRAPS) { ObjectSynchronizer::waitUninterruptibly (_obj, 0, CHECK);} |
162 // complete_exit gives up lock completely, returning recursion count |
162 // complete_exit gives up lock completely, returning recursion count |
163 // reenter reclaims lock with original recursion count |
163 // reenter reclaims lock with original recursion count |
164 intptr_t complete_exit(TRAPS) { return ObjectSynchronizer::complete_exit(_obj, CHECK_0); } |
164 intptr_t complete_exit(TRAPS) { return ObjectSynchronizer::complete_exit(_obj, THREAD); } |
165 void reenter(intptr_t recursion, TRAPS) { ObjectSynchronizer::reenter(_obj, recursion, CHECK); } |
165 void reenter(intptr_t recursion, TRAPS) { ObjectSynchronizer::reenter(_obj, recursion, CHECK); } |
166 }; |
166 }; |
167 |
167 |
168 #endif // SHARE_VM_RUNTIME_SYNCHRONIZER_HPP |
168 #endif // SHARE_VM_RUNTIME_SYNCHRONIZER_HPP |