hotspot/src/share/vm/runtime/mutexLocker.cpp
changeset 11584 e1df4d08a1f4
parent 10565 dc90c239f4ec
child 11587 16b0200f252d
equal deleted inserted replaced
11583:83a7383de44c 11584:e1df4d08a1f4
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2012, 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.
   124 Mutex*   OopMapCacheAlloc_lock        = NULL;
   124 Mutex*   OopMapCacheAlloc_lock        = NULL;
   125 
   125 
   126 Mutex*   FreeList_lock                = NULL;
   126 Mutex*   FreeList_lock                = NULL;
   127 Monitor* SecondaryFreeList_lock       = NULL;
   127 Monitor* SecondaryFreeList_lock       = NULL;
   128 Mutex*   OldSets_lock                 = NULL;
   128 Mutex*   OldSets_lock                 = NULL;
       
   129 Monitor* RootRegionScan_lock          = NULL;
   129 Mutex*   MMUTracker_lock              = NULL;
   130 Mutex*   MMUTracker_lock              = NULL;
   130 Mutex*   HotCardCache_lock            = NULL;
   131 Mutex*   HotCardCache_lock            = NULL;
   131 
   132 
   132 Monitor* GCTaskManager_lock           = NULL;
   133 Monitor* GCTaskManager_lock           = NULL;
   133 
   134 
   134 Mutex*   Management_lock              = NULL;
   135 Mutex*   Management_lock              = NULL;
   135 Monitor* Service_lock               = NULL;
   136 Monitor* Service_lock                 = NULL;
   136 
   137 
   137 #define MAX_NUM_MUTEX 128
   138 #define MAX_NUM_MUTEX 128
   138 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   139 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   139 static int _num_mutex;
   140 static int _num_mutex;
   140 
   141 
   191     def(Shared_DirtyCardQ_lock     , Mutex,   nonleaf,     true );
   192     def(Shared_DirtyCardQ_lock     , Mutex,   nonleaf,     true );
   192 
   193 
   193     def(FreeList_lock              , Mutex,   leaf     ,   true );
   194     def(FreeList_lock              , Mutex,   leaf     ,   true );
   194     def(SecondaryFreeList_lock     , Monitor, leaf     ,   true );
   195     def(SecondaryFreeList_lock     , Monitor, leaf     ,   true );
   195     def(OldSets_lock               , Mutex  , leaf     ,   true );
   196     def(OldSets_lock               , Mutex  , leaf     ,   true );
       
   197     def(RootRegionScan_lock        , Monitor, leaf     ,   true );
   196     def(MMUTracker_lock            , Mutex  , leaf     ,   true );
   198     def(MMUTracker_lock            , Mutex  , leaf     ,   true );
   197     def(HotCardCache_lock          , Mutex  , special  ,   true );
   199     def(HotCardCache_lock          , Mutex  , special  ,   true );
   198     def(EvacFailureStack_lock      , Mutex  , nonleaf  ,   true );
   200     def(EvacFailureStack_lock      , Mutex  , nonleaf  ,   true );
   199   }
   201   }
   200   def(ParGCRareEvent_lock          , Mutex  , leaf     ,   true );
   202   def(ParGCRareEvent_lock          , Mutex  , leaf     ,   true );