15 * You should have received a copy of the GNU General Public License version
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_RUNTIME_MUTEXLOCKER_HPP
26 #define SHARE_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 Mutex* CompiledMethod_lock; // a lock used to guard a compiled method
36 extern Monitor* SystemDictionary_lock; // a lock on the system dictionary
37 extern Mutex* ProtectionDomainSet_lock; // a lock on the pd_set list in the system dictionary
38 extern Mutex* SharedDictionary_lock; // a lock on the CDS shared dictionary
39 extern Mutex* Module_lock; // a lock on module and package related data structures
40 extern Mutex* CompiledIC_lock; // a lock used to guard compiled IC patching and access
41 extern Mutex* InlineCacheBuffer_lock; // a lock used to guard the InlineCacheBuffer
42 extern Mutex* VMStatistic_lock; // a lock used to guard statistics count increment
43 extern Mutex* JNIHandleBlockFreeList_lock; // a lock on the JNI handle block free list
44 extern Mutex* JmethodIdCreation_lock; // a lock on creating JNI method identifiers
45 extern Mutex* JfieldIdCreation_lock; // a lock on creating JNI static field identifiers
46 extern Monitor* JNICritical_lock; // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
47 extern Mutex* JvmtiThreadState_lock; // a lock on modification of JVMTI thread data
48 extern Monitor* Heap_lock; // a lock on the heap
49 extern Mutex* ExpandHeap_lock; // a lock on expanding the heap
50 extern Mutex* AdapterHandlerLibrary_lock; // a lock on the AdapterHandlerLibrary
51 extern Mutex* SignatureHandlerLibrary_lock; // a lock on the SignatureHandlerLibrary
52 extern Mutex* VtableStubs_lock; // a lock on the VtableStubs
53 extern Mutex* SymbolArena_lock; // a lock on the symbol table arena
54 extern Monitor* StringDedupQueue_lock; // a lock on the string deduplication queue
55 extern Mutex* StringDedupTable_lock; // a lock on the string deduplication table
|
15 * You should have received a copy of the GNU General Public License version
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_RUNTIME_MUTEXLOCKER_HPP
26 #define SHARE_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 Mutex* CompiledMethod_lock; // a lock used to guard a compiled method and OSR queues
36 extern Monitor* SystemDictionary_lock; // a lock on the system dictionary
37 extern Mutex* ProtectionDomainSet_lock; // a lock on the pd_set list in the system dictionary
38 extern Mutex* SharedDictionary_lock; // a lock on the CDS shared dictionary
39 extern Mutex* Module_lock; // a lock on module and package related data structures
40 extern Mutex* CompiledIC_lock; // a lock used to guard compiled IC patching and access
41 extern Mutex* InlineCacheBuffer_lock; // a lock used to guard the InlineCacheBuffer
42 extern Mutex* VMStatistic_lock; // a lock used to guard statistics count increment
43 extern Mutex* JNIHandleBlockFreeList_lock; // a lock on the JNI handle block free list
44 extern Mutex* JmethodIdCreation_lock; // a lock on creating JNI method identifiers
45 extern Mutex* JfieldIdCreation_lock; // a lock on creating JNI static field identifiers
46 extern Monitor* JNICritical_lock; // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
47 extern Mutex* JvmtiThreadState_lock; // a lock on modification of JVMTI thread data
48 extern Monitor* Heap_lock; // a lock on the heap
49 extern Mutex* ExpandHeap_lock; // a lock on expanding the heap
50 extern Mutex* AdapterHandlerLibrary_lock; // a lock on the AdapterHandlerLibrary
51 extern Mutex* SignatureHandlerLibrary_lock; // a lock on the SignatureHandlerLibrary
52 extern Mutex* VtableStubs_lock; // a lock on the VtableStubs
53 extern Mutex* SymbolArena_lock; // a lock on the symbol table arena
54 extern Monitor* StringDedupQueue_lock; // a lock on the string deduplication queue
55 extern Mutex* StringDedupTable_lock; // a lock on the string deduplication table
|