hotspot/src/share/vm/runtime/mutexLocker.cpp
changeset 46384 dacebddcdea0
parent 46369 3bf4544bec14
child 46505 fd4bc78630b1
equal deleted inserted replaced
46383:24999171edf9 46384:dacebddcdea0
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
    79 Mutex*   Shared_DirtyCardQ_lock       = NULL;
    79 Mutex*   Shared_DirtyCardQ_lock       = NULL;
    80 Mutex*   MarkStackFreeList_lock       = NULL;
    80 Mutex*   MarkStackFreeList_lock       = NULL;
    81 Mutex*   MarkStackChunkList_lock      = NULL;
    81 Mutex*   MarkStackChunkList_lock      = NULL;
    82 Mutex*   ParGCRareEvent_lock          = NULL;
    82 Mutex*   ParGCRareEvent_lock          = NULL;
    83 Mutex*   DerivedPointerTableGC_lock   = NULL;
    83 Mutex*   DerivedPointerTableGC_lock   = NULL;
       
    84 Monitor* CGCPhaseManager_lock         = NULL;
    84 Mutex*   Compile_lock                 = NULL;
    85 Mutex*   Compile_lock                 = NULL;
    85 Monitor* MethodCompileQueue_lock      = NULL;
    86 Monitor* MethodCompileQueue_lock      = NULL;
    86 Monitor* CompileThread_lock           = NULL;
    87 Monitor* CompileThread_lock           = NULL;
    87 Monitor* Compilation_lock             = NULL;
    88 Monitor* Compilation_lock             = NULL;
    88 Mutex*   CompileTaskAlloc_lock        = NULL;
    89 Mutex*   CompileTaskAlloc_lock        = NULL;
   201     def(MarkStackFreeList_lock     , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_never);
   202     def(MarkStackFreeList_lock     , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_never);
   202     def(MarkStackChunkList_lock    , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_never);
   203     def(MarkStackChunkList_lock    , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_never);
   203   }
   204   }
   204   def(ParGCRareEvent_lock          , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_sometimes);
   205   def(ParGCRareEvent_lock          , PaddedMutex  , leaf     ,   true,  Monitor::_safepoint_check_sometimes);
   205   def(DerivedPointerTableGC_lock   , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
   206   def(DerivedPointerTableGC_lock   , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
       
   207 #ifdef INCLUDE_ALL_GCS
       
   208   def(CGCPhaseManager_lock         , PaddedMonitor, leaf,        false, Monitor::_safepoint_check_sometimes);
       
   209 #endif
   206   def(CodeCache_lock               , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   210   def(CodeCache_lock               , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   207   def(RawMonitor_lock              , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   211   def(RawMonitor_lock              , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   208   def(OopMapCacheAlloc_lock        , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for oop_map_cache allocation.
   212   def(OopMapCacheAlloc_lock        , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for oop_map_cache allocation.
   209 
   213 
   210   def(Patching_lock                , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);      // used for safepointing and code patching.
   214   def(Patching_lock                , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);      // used for safepointing and code patching.