annotate src/share/vm/gc_implementation/includeDB_gc_serial @ 452:00b023ae2d78

6722113: CMS: Incorrect overflow handling during precleaning of Reference lists Summary: When we encounter marking stack overflow during precleaning of Reference lists, we were using the overflow list mechanism, which can cause problems on account of mutating the mark word of the header because of conflicts with mutator accesses and updates of that field. Instead we should use the usual mechanism for overflow handling in concurrent phases, namely dirtying of the card on which the overflowed object lies. Since precleaning effectively does a form of discovered list processing, albeit with discovery enabled, we needed to adjust some code to be correct in the face of interleaved processing and discovery. Reviewed-by: apetrusenko, jcoomes
author ysr
date Thu, 20 Nov 2008 12:27:41 -0800
parents a61af66fc99e
children e018e6884bd8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 //
a61af66fc99e Initial load
duke
parents:
diff changeset
2 // Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 //
a61af66fc99e Initial load
duke
parents:
diff changeset
5 // This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 // under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 // published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 //
a61af66fc99e Initial load
duke
parents:
diff changeset
9 // This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 // version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 // accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 //
a61af66fc99e Initial load
duke
parents:
diff changeset
15 // You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 // 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 // Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 //
a61af66fc99e Initial load
duke
parents:
diff changeset
19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 // CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 // have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 //
a61af66fc99e Initial load
duke
parents:
diff changeset
23 //
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 adaptiveSizePolicy.hpp collectedHeap.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
26 adaptiveSizePolicy.hpp gcCause.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
27 adaptiveSizePolicy.hpp gcUtil.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
28 adaptiveSizePolicy.hpp allocation.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
29 adaptiveSizePolicy.hpp universe.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 adaptiveSizePolicy.cpp adaptiveSizePolicy.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
32 adaptiveSizePolicy.cpp gcCause.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
33 adaptiveSizePolicy.cpp ostream.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
34 adaptiveSizePolicy.cpp timer.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 ageTable.cpp ageTable.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
37 ageTable.cpp collectorPolicy.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
38 ageTable.cpp copy.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
39 ageTable.cpp gcPolicyCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
40 ageTable.cpp resourceArea.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
41 ageTable.cpp sharedHeap.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
42
a61af66fc99e Initial load
duke
parents:
diff changeset
43 ageTable.hpp markOop.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
44 ageTable.hpp oop.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
45 ageTable.hpp perfData.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 collectorCounters.cpp collectorCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
48 collectorCounters.cpp resourceArea.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 collectorCounters.hpp perfData.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 cSpaceCounters.cpp resourceArea.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
53 cSpaceCounters.cpp cSpaceCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 cSpaceCounters.hpp space.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
56 cSpaceCounters.hpp perfData.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
57 cSpaceCounters.hpp generationCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 gcPolicyCounters.cpp resourceArea.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
60 gcPolicyCounters.cpp gcPolicyCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 gcPolicyCounters.hpp perfData.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 gcStats.cpp gcStats.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
65 gcStats.cpp gcUtil.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 gcStats.hpp gcUtil.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 gcUtil.cpp gcUtil.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
70
a61af66fc99e Initial load
duke
parents:
diff changeset
71 gcUtil.hpp allocation.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
72 gcUtil.hpp debug.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
73 gcUtil.hpp globalDefinitions.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
74 gcUtil.hpp timer.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 generationCounters.cpp generationCounters.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
77 generationCounters.cpp resourceArea.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79 generationCounters.hpp perfData.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
80 generationCounters.hpp virtualspace.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 immutableSpace.hpp iterator.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 liveRange.hpp copy.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
85 liveRange.hpp memRegion.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87 markSweep.cpp collectedHeap.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
88 markSweep.cpp markSweep.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
89 markSweep.cpp oop.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 markSweep.hpp growableArray.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
92 markSweep.hpp markOop.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
93 markSweep.hpp oop.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
94 markSweep.hpp timer.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
95 markSweep.hpp universe.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
96
a61af66fc99e Initial load
duke
parents:
diff changeset
97 markSweep.inline.hpp collectedHeap.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
98 markSweep.inline.hpp markSweep.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 mutableSpace.hpp immutableSpace.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
101 mutableSpace.hpp memRegion.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
102 mutableSpace.hpp copy.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 vmGCOperations.cpp vmGCOperations.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
105 vmGCOperations.cpp dtrace.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
106 vmGCOperations.cpp classLoader.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
107 vmGCOperations.cpp gcLocker.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
108 vmGCOperations.cpp genCollectedHeap.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
109 vmGCOperations.cpp handles.inline.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
110 vmGCOperations.cpp init.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
111 vmGCOperations.cpp instanceKlass.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
112 vmGCOperations.cpp instanceRefKlass.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
113 vmGCOperations.cpp interfaceSupport.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
114 vmGCOperations.cpp javaClasses.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
115 vmGCOperations.cpp jvmtiExport.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
116 vmGCOperations.cpp oopFactory.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
117 vmGCOperations.cpp preserveException.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 vmGCOperations.hpp vm_operations.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
120 vmGCOperations.hpp heapInspection.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
121 vmGCOperations.hpp handles.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
122 vmGCOperations.hpp jniHandles.hpp
a61af66fc99e Initial load
duke
parents:
diff changeset
123 vmGCOperations.hpp synchronizer.hpp