1 /*
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
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 *
59 extern Mutex* VtableStubs_lock; // a lock on the VtableStubs
60 extern Mutex* SymbolArena_lock; // a lock on the symbol table arena
61 extern Monitor* StringDedupQueue_lock; // a lock on the string deduplication queue
62 extern Mutex* StringDedupTable_lock; // a lock on the string deduplication table
63 extern Monitor* CodeCache_lock; // a lock on the CodeCache, rank is special, use MutexLockerEx
64 extern Mutex* MethodData_lock; // a lock on installation of method data
65 extern Mutex* TouchedMethodLog_lock; // a lock on allocation of LogExecutedMethods info
66 extern Mutex* RetData_lock; // a lock on installation of RetData inside method data
67 extern Mutex* DerivedPointerTableGC_lock; // a lock to protect the derived pointer table
68 extern Monitor* CGCPhaseManager_lock; // a lock to protect a concurrent GC's phase management
69 extern Monitor* VMOperationQueue_lock; // a lock on queue of vm_operations waiting to execute
70 extern Monitor* VMOperationRequest_lock; // a lock on Threads waiting for a vm_operation to terminate
71 extern Monitor* Safepoint_lock; // a lock used by the safepoint abstraction
72 extern Monitor* Threads_lock; // a lock on the Threads table of active Java threads
73 // (also used by Safepoints too to block threads creation/destruction)
74 extern Mutex* NonJavaThreadsList_lock; // a lock on the NonJavaThreads list
75 extern Monitor* CGC_lock; // used for coordination between
76 // fore- & background GC threads.
77 extern Monitor* STS_lock; // used for joining/leaving SuspendibleThreadSet.
78 extern Monitor* FullGCCount_lock; // in support of "concurrent" full gc
79 extern Mutex* SATB_Q_FL_lock; // Protects SATB Q
80 // buffer free list.
81 extern Monitor* SATB_Q_CBL_mon; // Protects SATB Q
82 // completed buffer queue.
83 extern Mutex* Shared_SATB_Q_lock; // Lock protecting SATB
84 // queue shared by
85 // non-Java threads.
86
87 extern Mutex* DirtyCardQ_FL_lock; // Protects dirty card Q
88 // buffer free list.
89 extern Monitor* DirtyCardQ_CBL_mon; // Protects dirty card Q
90 // completed buffer queue.
91 extern Mutex* Shared_DirtyCardQ_lock; // Lock protecting dirty card
92 // queue shared by
93 // non-Java threads.
94 extern Mutex* MarkStackFreeList_lock; // Protects access to the global mark stack free list.
95 extern Mutex* MarkStackChunkList_lock; // Protects access to the global mark stack chunk list.
96 extern Mutex* MonitoringSupport_lock; // Protects updates to the serviceability memory pools.
97 extern Mutex* ParGCRareEvent_lock; // Synchronizes various (rare) parallel GC ops.
98 extern Mutex* Compile_lock; // a lock held when Compilation is updating code (used to block CodeCache traversal, CHA updates, etc)
99 extern Monitor* MethodCompileQueue_lock; // a lock held when method compilations are enqueued, dequeued
100 extern Monitor* CompileThread_lock; // a lock held by compile threads during compilation system initialization
101 extern Monitor* Compilation_lock; // a lock used to pause compilation
102 extern Mutex* CompileTaskAlloc_lock; // a lock held when CompileTasks are allocated
103 extern Mutex* CompileStatistics_lock; // a lock held when updating compilation statistics
104 extern Mutex* DirectivesStack_lock; // a lock held when mutating the dirstack and ref counting directives
105 extern Mutex* MultiArray_lock; // a lock used to guard allocation of multi-dim arrays
106 extern Monitor* Terminator_lock; // a lock used to guard termination of the vm
107 extern Monitor* BeforeExit_lock; // a lock used to guard cleanups and shutdown hooks
108 extern Monitor* Notify_lock; // a lock used to synchronize the start-up of the vm
|
1 /*
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
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 *
59 extern Mutex* VtableStubs_lock; // a lock on the VtableStubs
60 extern Mutex* SymbolArena_lock; // a lock on the symbol table arena
61 extern Monitor* StringDedupQueue_lock; // a lock on the string deduplication queue
62 extern Mutex* StringDedupTable_lock; // a lock on the string deduplication table
63 extern Monitor* CodeCache_lock; // a lock on the CodeCache, rank is special, use MutexLockerEx
64 extern Mutex* MethodData_lock; // a lock on installation of method data
65 extern Mutex* TouchedMethodLog_lock; // a lock on allocation of LogExecutedMethods info
66 extern Mutex* RetData_lock; // a lock on installation of RetData inside method data
67 extern Mutex* DerivedPointerTableGC_lock; // a lock to protect the derived pointer table
68 extern Monitor* CGCPhaseManager_lock; // a lock to protect a concurrent GC's phase management
69 extern Monitor* VMOperationQueue_lock; // a lock on queue of vm_operations waiting to execute
70 extern Monitor* VMOperationRequest_lock; // a lock on Threads waiting for a vm_operation to terminate
71 extern Monitor* Safepoint_lock; // a lock used by the safepoint abstraction
72 extern Monitor* Threads_lock; // a lock on the Threads table of active Java threads
73 // (also used by Safepoints too to block threads creation/destruction)
74 extern Mutex* NonJavaThreadsList_lock; // a lock on the NonJavaThreads list
75 extern Monitor* CGC_lock; // used for coordination between
76 // fore- & background GC threads.
77 extern Monitor* STS_lock; // used for joining/leaving SuspendibleThreadSet.
78 extern Monitor* FullGCCount_lock; // in support of "concurrent" full gc
79 extern Monitor* SATB_Q_CBL_mon; // Protects SATB Q
80 // completed buffer queue.
81 extern Mutex* Shared_SATB_Q_lock; // Lock protecting SATB
82 // queue shared by
83 // non-Java threads.
84
85 extern Monitor* DirtyCardQ_CBL_mon; // Protects dirty card Q
86 // completed buffer queue.
87 extern Mutex* Shared_DirtyCardQ_lock; // Lock protecting dirty card
88 // queue shared by
89 // non-Java threads.
90 extern Mutex* MarkStackFreeList_lock; // Protects access to the global mark stack free list.
91 extern Mutex* MarkStackChunkList_lock; // Protects access to the global mark stack chunk list.
92 extern Mutex* MonitoringSupport_lock; // Protects updates to the serviceability memory pools.
93 extern Mutex* ParGCRareEvent_lock; // Synchronizes various (rare) parallel GC ops.
94 extern Mutex* Compile_lock; // a lock held when Compilation is updating code (used to block CodeCache traversal, CHA updates, etc)
95 extern Monitor* MethodCompileQueue_lock; // a lock held when method compilations are enqueued, dequeued
96 extern Monitor* CompileThread_lock; // a lock held by compile threads during compilation system initialization
97 extern Monitor* Compilation_lock; // a lock used to pause compilation
98 extern Mutex* CompileTaskAlloc_lock; // a lock held when CompileTasks are allocated
99 extern Mutex* CompileStatistics_lock; // a lock held when updating compilation statistics
100 extern Mutex* DirectivesStack_lock; // a lock held when mutating the dirstack and ref counting directives
101 extern Mutex* MultiArray_lock; // a lock used to guard allocation of multi-dim arrays
102 extern Monitor* Terminator_lock; // a lock used to guard termination of the vm
103 extern Monitor* BeforeExit_lock; // a lock used to guard cleanups and shutdown hooks
104 extern Monitor* Notify_lock; // a lock used to synchronize the start-up of the vm
|