16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
26 #define SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
27
28 #include "memory/allocation.hpp"
29 #include "runtime/flags/flagSetting.hpp"
30 #include "runtime/mutex.hpp"
31
32 // Mutexes used in the VM.
33
34 extern Mutex* Patching_lock; // a lock used to guard code patching of compiled code
35 extern Monitor* SystemDictionary_lock; // a lock on the system dictionary
36 extern Mutex* Module_lock; // a lock on module and package related data structures
37 extern Mutex* CompiledIC_lock; // a lock used to guard compiled IC patching and access
38 extern Mutex* InlineCacheBuffer_lock; // a lock used to guard the InlineCacheBuffer
39 extern Mutex* VMStatistic_lock; // a lock used to guard statistics count increment
40 extern Mutex* JNIGlobalAlloc_lock; // JNI global storage allocate list lock
41 extern Mutex* JNIGlobalActive_lock; // JNI global storage active list lock
42 extern Mutex* JNIWeakAlloc_lock; // JNI weak storage allocate list lock
43 extern Mutex* JNIWeakActive_lock; // JNI weak storage active list lock
44 extern Mutex* JNIHandleBlockFreeList_lock; // a lock on the JNI handle block free list
45 extern Mutex* VMWeakAlloc_lock; // VM Weak Handles storage allocate list lock
46 extern Mutex* VMWeakActive_lock; // VM Weak Handles storage active list lock
47 extern Mutex* ResolvedMethodTable_lock; // a lock on the ResolvedMethodTable updates
48 extern Mutex* JmethodIdCreation_lock; // a lock on creating JNI method identifiers
49 extern Mutex* JfieldIdCreation_lock; // a lock on creating JNI static field identifiers
50 extern Monitor* JNICritical_lock; // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
51 extern Mutex* JvmtiThreadState_lock; // a lock on modification of JVMTI thread data
52 extern Monitor* Heap_lock; // a lock on the heap
53 extern Mutex* ExpandHeap_lock; // a lock on expanding the heap
54 extern Mutex* AdapterHandlerLibrary_lock; // a lock on the AdapterHandlerLibrary
55 extern Mutex* SignatureHandlerLibrary_lock; // a lock on the SignatureHandlerLibrary
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
26 #define SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
27
28 #include "memory/allocation.hpp"
29 #include "runtime/flags/flagSetting.hpp"
30 #include "runtime/mutex.hpp"
31
32 // Mutexes used in the VM.
33
34 extern Mutex* Patching_lock; // a lock used to guard code patching of compiled code
35 extern Monitor* SystemDictionary_lock; // a lock on the system dictionary
36 extern Mutex* SharedDictionary_lock; // a lock on the CDS shared dictionary
37 extern Mutex* Module_lock; // a lock on module and package related data structures
38 extern Mutex* CompiledIC_lock; // a lock used to guard compiled IC patching and access
39 extern Mutex* InlineCacheBuffer_lock; // a lock used to guard the InlineCacheBuffer
40 extern Mutex* VMStatistic_lock; // a lock used to guard statistics count increment
41 extern Mutex* JNIGlobalAlloc_lock; // JNI global storage allocate list lock
42 extern Mutex* JNIGlobalActive_lock; // JNI global storage active list lock
43 extern Mutex* JNIWeakAlloc_lock; // JNI weak storage allocate list lock
44 extern Mutex* JNIWeakActive_lock; // JNI weak storage active list lock
45 extern Mutex* JNIHandleBlockFreeList_lock; // a lock on the JNI handle block free list
46 extern Mutex* VMWeakAlloc_lock; // VM Weak Handles storage allocate list lock
47 extern Mutex* VMWeakActive_lock; // VM Weak Handles storage active list lock
48 extern Mutex* ResolvedMethodTable_lock; // a lock on the ResolvedMethodTable updates
49 extern Mutex* JmethodIdCreation_lock; // a lock on creating JNI method identifiers
50 extern Mutex* JfieldIdCreation_lock; // a lock on creating JNI static field identifiers
51 extern Monitor* JNICritical_lock; // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
52 extern Mutex* JvmtiThreadState_lock; // a lock on modification of JVMTI thread data
53 extern Monitor* Heap_lock; // a lock on the heap
54 extern Mutex* ExpandHeap_lock; // a lock on expanding the heap
55 extern Mutex* AdapterHandlerLibrary_lock; // a lock on the AdapterHandlerLibrary
56 extern Mutex* SignatureHandlerLibrary_lock; // a lock on the SignatureHandlerLibrary
|