comparison src/share/vm/runtime/mutexLocker.hpp @ 2152:0fa27f37d4d4

6977804: G1: remove the zero-filling thread Summary: This changeset removes the zero-filling thread from G1 and collapses the two free region lists we had before (the "free" and "unclean" lists) into one. The new free list uses the new heap region sets / lists abstractions that we'll ultimately use it to keep track of all regions in the heap. A heap region set was also introduced for the humongous regions. Finally, this change increases the concurrency between the thread that completes freeing regions (after a cleanup pause) and the rest of the system (before we'd have to wait for said thread to complete before allocating a new region). The changest also includes a lot of refactoring and code simplification. Reviewed-by: jcoomes, johnc
author tonyp
date Wed, 19 Jan 2011 19:30:42 -0500
parents f95d63e2154a
children bf8517f4e4d0
comparison
equal deleted inserted replaced
2151:cb913d743d09 2152:0fa27f37d4d4
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2011, 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.
74 extern Mutex* STS_init_lock; // coordinate initialization of SuspendibleThreadSets. 74 extern Mutex* STS_init_lock; // coordinate initialization of SuspendibleThreadSets.
75 extern Monitor* SLT_lock; // used in CMS GC for acquiring PLL 75 extern Monitor* SLT_lock; // used in CMS GC for acquiring PLL
76 extern Monitor* iCMS_lock; // CMS incremental mode start/stop notification 76 extern Monitor* iCMS_lock; // CMS incremental mode start/stop notification
77 extern Monitor* FullGCCount_lock; // in support of "concurrent" full gc 77 extern Monitor* FullGCCount_lock; // in support of "concurrent" full gc
78 extern Monitor* CMark_lock; // used for concurrent mark thread coordination 78 extern Monitor* CMark_lock; // used for concurrent mark thread coordination
79 extern Monitor* ZF_mon; // used for G1 conc zero-fill.
80 extern Monitor* Cleanup_mon; // used for G1 conc cleanup.
81 extern Mutex* CMRegionStack_lock; // used for protecting accesses to the CM region stack 79 extern Mutex* CMRegionStack_lock; // used for protecting accesses to the CM region stack
82 extern Mutex* SATB_Q_FL_lock; // Protects SATB Q 80 extern Mutex* SATB_Q_FL_lock; // Protects SATB Q
83 // buffer free list. 81 // buffer free list.
84 extern Monitor* SATB_Q_CBL_mon; // Protects SATB Q 82 extern Monitor* SATB_Q_CBL_mon; // Protects SATB Q
85 // completed buffer queue. 83 // completed buffer queue.
123 extern Mutex* PerfDataMemAlloc_lock; // a lock on the allocator for PerfData memory for performance data 121 extern Mutex* PerfDataMemAlloc_lock; // a lock on the allocator for PerfData memory for performance data
124 extern Mutex* PerfDataManager_lock; // a long on access to PerfDataManager resources 122 extern Mutex* PerfDataManager_lock; // a long on access to PerfDataManager resources
125 extern Mutex* ParkerFreeList_lock; 123 extern Mutex* ParkerFreeList_lock;
126 extern Mutex* OopMapCacheAlloc_lock; // protects allocation of oop_map caches 124 extern Mutex* OopMapCacheAlloc_lock; // protects allocation of oop_map caches
127 125
126 extern Mutex* FreeList_lock; // protects the free region list during safepoints
127 extern Monitor* SecondaryFreeList_lock; // protects the secondary free region list
128 extern Mutex* OldSets_lock; // protects the old region sets
128 extern Mutex* MMUTracker_lock; // protects the MMU 129 extern Mutex* MMUTracker_lock; // protects the MMU
129 // tracker data structures 130 // tracker data structures
130 extern Mutex* HotCardCache_lock; // protects the hot card cache 131 extern Mutex* HotCardCache_lock; // protects the hot card cache
131 132
132 extern Mutex* Management_lock; // a lock used to serialize JVM management 133 extern Mutex* Management_lock; // a lock used to serialize JVM management