comparison src/share/vm/runtime/mutexLocker.cpp @ 4837:eff609af17d7

7127706: G1: re-enable survivors during the initial-mark pause Summary: Re-enable survivors during the initial-mark pause. Afterwards, the concurrent marking threads have to scan them and mark everything reachable from them. The next GC will have to wait for the survivors to be scanned. Reviewed-by: brutisso, johnc
author tonyp
date Wed, 25 Jan 2012 12:58:23 -0500
parents f08d439fab8c
children 0a10d80352d5
comparison
equal deleted inserted replaced
4836:d30fa85f9994 4837:eff609af17d7
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 );