< prev index next >

src/share/vm/runtime/mutexLocker.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2015, 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  *


  82 Monitor* DirtyCardQ_CBL_mon           = NULL;
  83 Mutex*   Shared_DirtyCardQ_lock       = NULL;
  84 Mutex*   ParGCRareEvent_lock          = NULL;
  85 Mutex*   EvacFailureStack_lock        = NULL;
  86 Mutex*   DerivedPointerTableGC_lock   = NULL;
  87 Mutex*   Compile_lock                 = NULL;
  88 Monitor* MethodCompileQueue_lock      = NULL;
  89 Monitor* CompileThread_lock           = NULL;
  90 Mutex*   CompileTaskAlloc_lock        = NULL;
  91 Mutex*   CompileStatistics_lock       = NULL;
  92 Mutex*   MultiArray_lock              = NULL;
  93 Monitor* Terminator_lock              = NULL;
  94 Monitor* BeforeExit_lock              = NULL;
  95 Monitor* Notify_lock                  = NULL;
  96 Monitor* Interrupt_lock               = NULL;
  97 Monitor* ProfileVM_lock               = NULL;
  98 Mutex*   ProfilePrint_lock            = NULL;
  99 Mutex*   ExceptionCache_lock          = NULL;
 100 Monitor* ObjAllocPost_lock            = NULL;
 101 Mutex*   OsrList_lock                 = NULL;

 102 #ifndef PRODUCT
 103 Mutex*   FullGCALot_lock              = NULL;
 104 #endif
 105 
 106 Mutex*   Debug1_lock                  = NULL;
 107 Mutex*   Debug2_lock                  = NULL;
 108 Mutex*   Debug3_lock                  = NULL;
 109 
 110 Mutex*   tty_lock                     = NULL;
 111 
 112 Mutex*   RawMonitor_lock              = NULL;
 113 Mutex*   PerfDataMemAlloc_lock        = NULL;
 114 Mutex*   PerfDataManager_lock         = NULL;
 115 Mutex*   OopMapCacheAlloc_lock        = NULL;
 116 
 117 Mutex*   FreeList_lock                = NULL;
 118 Monitor* SecondaryFreeList_lock       = NULL;
 119 Mutex*   OldSets_lock                 = NULL;
 120 Monitor* RootRegionScan_lock          = NULL;
 121 Mutex*   MMUTracker_lock              = NULL;


 221   def(RawMonitor_lock              , Mutex,   special,     true );
 222   def(OopMapCacheAlloc_lock        , Mutex,   leaf,        true ); // used for oop_map_cache allocation.
 223 
 224   def(Patching_lock                , Mutex  , special,     true ); // used for safepointing and code patching.
 225   def(ObjAllocPost_lock            , Monitor, special,     false);
 226   def(Service_lock                 , Monitor, special,     true ); // used for service thread operations
 227   def(JmethodIdCreation_lock       , Mutex  , leaf,        true ); // used for creating jmethodIDs.
 228 
 229   def(SystemDictionary_lock        , Monitor, leaf,        true ); // lookups done by VM thread
 230   def(PackageTable_lock            , Mutex  , leaf,        false);
 231   def(InlineCacheBuffer_lock       , Mutex  , leaf,        true );
 232   def(VMStatistic_lock             , Mutex  , leaf,        false);
 233   def(ExpandHeap_lock              , Mutex  , leaf,        true ); // Used during compilation by VM thread
 234   def(JNIHandleBlockFreeList_lock  , Mutex  , leaf,        true ); // handles are used by VM thread
 235   def(SignatureHandlerLibrary_lock , Mutex  , leaf,        false);
 236   def(SymbolTable_lock             , Mutex  , leaf+2,      true );
 237   def(StringTable_lock             , Mutex  , leaf,        true );
 238   def(ProfilePrint_lock            , Mutex  , leaf,        false); // serial profile printing
 239   def(ExceptionCache_lock          , Mutex  , leaf,        false); // serial profile printing
 240   def(OsrList_lock                 , Mutex  , leaf,        true );

 241   def(Debug1_lock                  , Mutex  , leaf,        true );
 242 #ifndef PRODUCT
 243   def(FullGCALot_lock              , Mutex  , leaf,        false); // a lock to make FullGCALot MT safe
 244 #endif
 245   def(BeforeExit_lock              , Monitor, leaf,        true );
 246   def(PerfDataMemAlloc_lock        , Mutex  , leaf,        true ); // used for allocating PerfData memory for performance data
 247   def(PerfDataManager_lock         , Mutex  , leaf,        true ); // used for synchronized access to PerfDataManager resources
 248 
 249   // CMS_modUnionTable_lock                   leaf
 250   // CMS_bitMap_lock                          leaf + 1
 251   // CMS_freeList_lock                        leaf + 2
 252 
 253   def(Safepoint_lock               , Monitor, safepoint,   true ); // locks SnippetCache_lock/Threads_lock
 254 
 255   def(Threads_lock                 , Monitor, barrier,     true );
 256 
 257   def(VMOperationQueue_lock        , Monitor, nonleaf,     true ); // VM_thread allowed to block on these
 258   def(VMOperationRequest_lock      , Monitor, nonleaf,     true );
 259   def(RetData_lock                 , Mutex  , nonleaf,     false);
 260   def(Terminator_lock              , Monitor, nonleaf,     true );


   1 /*
   2  * Copyright (c) 1997, 2021, 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  *


  82 Monitor* DirtyCardQ_CBL_mon           = NULL;
  83 Mutex*   Shared_DirtyCardQ_lock       = NULL;
  84 Mutex*   ParGCRareEvent_lock          = NULL;
  85 Mutex*   EvacFailureStack_lock        = NULL;
  86 Mutex*   DerivedPointerTableGC_lock   = NULL;
  87 Mutex*   Compile_lock                 = NULL;
  88 Monitor* MethodCompileQueue_lock      = NULL;
  89 Monitor* CompileThread_lock           = NULL;
  90 Mutex*   CompileTaskAlloc_lock        = NULL;
  91 Mutex*   CompileStatistics_lock       = NULL;
  92 Mutex*   MultiArray_lock              = NULL;
  93 Monitor* Terminator_lock              = NULL;
  94 Monitor* BeforeExit_lock              = NULL;
  95 Monitor* Notify_lock                  = NULL;
  96 Monitor* Interrupt_lock               = NULL;
  97 Monitor* ProfileVM_lock               = NULL;
  98 Mutex*   ProfilePrint_lock            = NULL;
  99 Mutex*   ExceptionCache_lock          = NULL;
 100 Monitor* ObjAllocPost_lock            = NULL;
 101 Mutex*   OsrList_lock                 = NULL;
 102 Mutex*   MetadataOnStackBuffer_lock   = NULL;
 103 #ifndef PRODUCT
 104 Mutex*   FullGCALot_lock              = NULL;
 105 #endif
 106 
 107 Mutex*   Debug1_lock                  = NULL;
 108 Mutex*   Debug2_lock                  = NULL;
 109 Mutex*   Debug3_lock                  = NULL;
 110 
 111 Mutex*   tty_lock                     = NULL;
 112 
 113 Mutex*   RawMonitor_lock              = NULL;
 114 Mutex*   PerfDataMemAlloc_lock        = NULL;
 115 Mutex*   PerfDataManager_lock         = NULL;
 116 Mutex*   OopMapCacheAlloc_lock        = NULL;
 117 
 118 Mutex*   FreeList_lock                = NULL;
 119 Monitor* SecondaryFreeList_lock       = NULL;
 120 Mutex*   OldSets_lock                 = NULL;
 121 Monitor* RootRegionScan_lock          = NULL;
 122 Mutex*   MMUTracker_lock              = NULL;


 222   def(RawMonitor_lock              , Mutex,   special,     true );
 223   def(OopMapCacheAlloc_lock        , Mutex,   leaf,        true ); // used for oop_map_cache allocation.
 224 
 225   def(Patching_lock                , Mutex  , special,     true ); // used for safepointing and code patching.
 226   def(ObjAllocPost_lock            , Monitor, special,     false);
 227   def(Service_lock                 , Monitor, special,     true ); // used for service thread operations
 228   def(JmethodIdCreation_lock       , Mutex  , leaf,        true ); // used for creating jmethodIDs.
 229 
 230   def(SystemDictionary_lock        , Monitor, leaf,        true ); // lookups done by VM thread
 231   def(PackageTable_lock            , Mutex  , leaf,        false);
 232   def(InlineCacheBuffer_lock       , Mutex  , leaf,        true );
 233   def(VMStatistic_lock             , Mutex  , leaf,        false);
 234   def(ExpandHeap_lock              , Mutex  , leaf,        true ); // Used during compilation by VM thread
 235   def(JNIHandleBlockFreeList_lock  , Mutex  , leaf,        true ); // handles are used by VM thread
 236   def(SignatureHandlerLibrary_lock , Mutex  , leaf,        false);
 237   def(SymbolTable_lock             , Mutex  , leaf+2,      true );
 238   def(StringTable_lock             , Mutex  , leaf,        true );
 239   def(ProfilePrint_lock            , Mutex  , leaf,        false); // serial profile printing
 240   def(ExceptionCache_lock          , Mutex  , leaf,        false); // serial profile printing
 241   def(OsrList_lock                 , Mutex  , leaf,        true );
 242   def(MetadataOnStackBuffer_lock   , Mutex  , leaf,        false);
 243   def(Debug1_lock                  , Mutex  , leaf,        true );
 244 #ifndef PRODUCT
 245   def(FullGCALot_lock              , Mutex  , leaf,        false); // a lock to make FullGCALot MT safe
 246 #endif
 247   def(BeforeExit_lock              , Monitor, leaf,        true );
 248   def(PerfDataMemAlloc_lock        , Mutex  , leaf,        true ); // used for allocating PerfData memory for performance data
 249   def(PerfDataManager_lock         , Mutex  , leaf,        true ); // used for synchronized access to PerfDataManager resources
 250 
 251   // CMS_modUnionTable_lock                   leaf
 252   // CMS_bitMap_lock                          leaf + 1
 253   // CMS_freeList_lock                        leaf + 2
 254 
 255   def(Safepoint_lock               , Monitor, safepoint,   true ); // locks SnippetCache_lock/Threads_lock
 256 
 257   def(Threads_lock                 , Monitor, barrier,     true );
 258 
 259   def(VMOperationQueue_lock        , Monitor, nonleaf,     true ); // VM_thread allowed to block on these
 260   def(VMOperationRequest_lock      , Monitor, nonleaf,     true );
 261   def(RetData_lock                 , Mutex  , nonleaf,     false);
 262   def(Terminator_lock              , Monitor, nonleaf,     true );


< prev index next >