author | coleenp |
Thu, 10 Jan 2019 15:13:51 -0500 | |
changeset 53244 | 9807daeb47c4 |
parent 49733 | 6f0a3ea5ab75 |
child 54110 | f4f0dce5d0bb |
permissions | -rw-r--r-- |
1 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49733
diff
changeset
|
2 |
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1388
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1388
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1388
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49733
diff
changeset
|
25 |
#ifndef SHARE_GC_SHARED_CARDTABLERS_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49733
diff
changeset
|
26 |
#define SHARE_GC_SHARED_CARDTABLERS_HPP |
7397 | 27 |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
28 |
#include "gc/shared/cardTable.hpp" |
7397 | 29 |
#include "memory/memRegion.hpp" |
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
30 |
#include "oops/oop.hpp" |
7397 | 31 |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
32 |
class DirtyCardToOopClosure; |
47998
fb0275c320a0
8189871: Refactor GC barriers to use declarative semantics
eosterlund
parents:
47580
diff
changeset
|
33 |
class Generation; |
1 | 34 |
class Space; |
35 |
class OopsInGenClosure; |
|
36 |
||
47580 | 37 |
// Helper to remember modified oops in all clds. |
38 |
class CLDRemSet { |
|
33212 | 39 |
bool _accumulate_modified_oops; |
40 |
public: |
|
47580 | 41 |
CLDRemSet() : _accumulate_modified_oops(false) {} |
33212 | 42 |
void set_accumulate_modified_oops(bool value) { _accumulate_modified_oops = value; } |
43 |
bool accumulate_modified_oops() { return _accumulate_modified_oops; } |
|
44 |
bool mod_union_is_clear(); |
|
45 |
void clear_mod_union(); |
|
46 |
}; |
|
47 |
||
48 |
// This RemSet uses a card table both as shared data structure |
|
1 | 49 |
// for a mod ref barrier set and for the rem set information. |
50 |
||
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
51 |
class CardTableRS: public CardTable { |
1 | 52 |
friend class VMStructs; |
53 |
// Below are private classes used in impl. |
|
54 |
friend class VerifyCTSpaceClosure; |
|
55 |
friend class ClearNoncleanCardWrapper; |
|
56 |
||
47580 | 57 |
CLDRemSet _cld_rem_set; |
1 | 58 |
|
59 |
void verify_space(Space* s, HeapWord* gen_start); |
|
60 |
||
61 |
enum ExtendedCardValue { |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
62 |
youngergen_card = CT_MR_BS_last_reserved + 1, |
1 | 63 |
// These are for parallel collection. |
64 |
// There are three P (parallel) youngergen card values. In general, this |
|
65 |
// needs to be more than the number of generations (including the perm |
|
66 |
// gen) that might have younger_refs_do invoked on them separately. So |
|
67 |
// if we add more gens, we have to add more values. |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
68 |
youngergenP1_card = CT_MR_BS_last_reserved + 2, |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
69 |
youngergenP2_card = CT_MR_BS_last_reserved + 3, |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
70 |
youngergenP3_card = CT_MR_BS_last_reserved + 4, |
1 | 71 |
cur_youngergen_and_prev_nonclean_card = |
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
72 |
CT_MR_BS_last_reserved + 5 |
1 | 73 |
}; |
74 |
||
75 |
// An array that contains, for each generation, the card table value last |
|
76 |
// used as the current value for a younger_refs_do iteration of that |
|
31358
693058672cc6
8077842: Remove the level parameter passed around in GenCollectedHeap
jwilhelm
parents:
30870
diff
changeset
|
77 |
// portion of the table. The perm gen is index 0. The young gen is index 1, |
693058672cc6
8077842: Remove the level parameter passed around in GenCollectedHeap
jwilhelm
parents:
30870
diff
changeset
|
78 |
// but will always have the value "clean_card". The old gen is index 2. |
1 | 79 |
jbyte* _last_cur_val_in_gen; |
80 |
||
81 |
jbyte _cur_youngergen_card_val; |
|
82 |
||
27687
3a6367d7110b
8064721: The card tables only ever need two covering regions
ehelin
parents:
22548
diff
changeset
|
83 |
// Number of generations, plus one for lingering PermGen issues in CardTableRS. |
3a6367d7110b
8064721: The card tables only ever need two covering regions
ehelin
parents:
22548
diff
changeset
|
84 |
static const int _regions_to_iterate = 3; |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
85 |
|
1 | 86 |
jbyte cur_youngergen_card_val() { |
87 |
return _cur_youngergen_card_val; |
|
88 |
} |
|
89 |
void set_cur_youngergen_card_val(jbyte v) { |
|
90 |
_cur_youngergen_card_val = v; |
|
91 |
} |
|
92 |
bool is_prev_youngergen_card_val(jbyte v) { |
|
93 |
return |
|
94 |
youngergen_card <= v && |
|
95 |
v < cur_youngergen_and_prev_nonclean_card && |
|
96 |
v != _cur_youngergen_card_val; |
|
97 |
} |
|
98 |
// Return a youngergen_card_value that is not currently in use. |
|
99 |
jbyte find_unused_youngergenP_card_value(); |
|
100 |
||
101 |
public: |
|
49733
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
102 |
CardTableRS(MemRegion whole_heap, bool scanned_concurrently); |
17376
4ee999c3c007
8012902: remove use of global operator new - take 2
minqi
parents:
17031
diff
changeset
|
103 |
~CardTableRS(); |
1 | 104 |
|
47580 | 105 |
CLDRemSet* cld_rem_set() { return &_cld_rem_set; } |
1 | 106 |
|
33212 | 107 |
void younger_refs_in_space_iterate(Space* sp, OopsInGenClosure* cl, uint n_threads); |
108 |
||
49733
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
109 |
virtual void verify_used_region_at_save_marks(Space* sp) const NOT_DEBUG_RETURN; |
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
110 |
|
1 | 111 |
// Override. |
112 |
void prepare_for_younger_refs_iterate(bool parallel); |
|
113 |
||
114 |
// Card table entries are cleared before application; "blk" is |
|
115 |
// responsible for dirtying if the oop is still older-to-younger after |
|
116 |
// closure application. |
|
30870
3050fdcdc60b
8080112: Replace and remove the last usages of CollectedHeap::n_par_threads()
stefank
parents:
30764
diff
changeset
|
117 |
void younger_refs_iterate(Generation* g, OopsInGenClosure* blk, uint n_threads); |
1 | 118 |
|
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
179
diff
changeset
|
119 |
void inline_write_ref_field_gc(void* field, oop new_val) { |
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
120 |
jbyte* byte = byte_for(field); |
1 | 121 |
*byte = youngergen_card; |
122 |
} |
|
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
179
diff
changeset
|
123 |
void write_ref_field_gc_work(void* field, oop new_val) { |
1 | 124 |
inline_write_ref_field_gc(field, new_val); |
125 |
} |
|
126 |
||
127 |
// Override. Might want to devirtualize this in the same fashion as |
|
128 |
// above. Ensures that the value of the card for field says that it's |
|
129 |
// a younger card in the current collection. |
|
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
179
diff
changeset
|
130 |
virtual void write_ref_field_gc_par(void* field, oop new_val); |
1 | 131 |
|
132 |
bool is_aligned(HeapWord* addr) { |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
133 |
return is_card_aligned(addr); |
1 | 134 |
} |
135 |
||
136 |
void verify(); |
|
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
137 |
void initialize(); |
1 | 138 |
|
19289
213031f03f61
8023021: Unnecessary clearing of the card table introduced by the fix for JDK-8023013
brutisso
parents:
19286
diff
changeset
|
139 |
void clear_into_younger(Generation* old_gen); |
1 | 140 |
|
19289
213031f03f61
8023021: Unnecessary clearing of the card table introduced by the fix for JDK-8023013
brutisso
parents:
19286
diff
changeset
|
141 |
void invalidate_or_clear(Generation* old_gen); |
1 | 142 |
|
143 |
bool is_prev_nonclean_card_val(jbyte v) { |
|
144 |
return |
|
145 |
youngergen_card <= v && |
|
146 |
v <= cur_youngergen_and_prev_nonclean_card && |
|
147 |
v != _cur_youngergen_card_val; |
|
148 |
} |
|
149 |
||
150 |
static bool youngergen_may_have_been_dirty(jbyte cv) { |
|
151 |
return cv == CardTableRS::cur_youngergen_and_prev_nonclean_card; |
|
152 |
} |
|
153 |
||
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
154 |
// *** Support for parallel card scanning. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
155 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
156 |
// dirty and precleaned are equivalent wrt younger_refs_iter. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
157 |
static bool card_is_dirty_wrt_gen_iter(jbyte cv) { |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
158 |
return cv == dirty_card || cv == precleaned_card; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
159 |
} |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
160 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
161 |
// Returns "true" iff the value "cv" will cause the card containing it |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
162 |
// to be scanned in the current traversal. May be overridden by |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
163 |
// subtypes. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
164 |
bool card_will_be_scanned(jbyte cv); |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
165 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
166 |
// Returns "true" iff the value "cv" may have represented a dirty card at |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
167 |
// some point. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
168 |
bool card_may_have_been_dirty(jbyte cv); |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
169 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
170 |
// Iterate over the portion of the card-table which covers the given |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
171 |
// region mr in the given space and apply cl to any dirty sub-regions |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
172 |
// of mr. Clears the dirty cards as they are processed. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
173 |
void non_clean_card_iterate_possibly_parallel(Space* sp, MemRegion mr, |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
174 |
OopsInGenClosure* cl, CardTableRS* ct, |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
175 |
uint n_threads); |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
176 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
177 |
// Work method used to implement non_clean_card_iterate_possibly_parallel() |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
178 |
// above in the parallel case. |
49733
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
179 |
virtual void non_clean_card_iterate_parallel_work(Space* sp, MemRegion mr, |
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
180 |
OopsInGenClosure* cl, CardTableRS* ct, |
6f0a3ea5ab75
8201209: Separate out CMS specific functions into CMSCardTable
stefank
parents:
49164
diff
changeset
|
181 |
uint n_threads); |
49164
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
182 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
183 |
// This is an array, one element per covered region of the card table. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
184 |
// Each entry is itself an array, with one element per chunk in the |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
185 |
// covered region. Each entry of these arrays is the lowest non-clean |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
186 |
// card of the corresponding chunk containing part of an object from the |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
187 |
// previous chunk, or else NULL. |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
188 |
typedef jbyte* CardPtr; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
189 |
typedef CardPtr* CardArr; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
190 |
CardArr* _lowest_non_clean; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
191 |
size_t* _lowest_non_clean_chunk_size; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
192 |
uintptr_t* _lowest_non_clean_base_chunk_index; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
193 |
volatile int* _last_LNC_resizing_collection; |
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
194 |
|
7e958a8ebcd3
8195142: Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy
eosterlund
parents:
47998
diff
changeset
|
195 |
virtual bool is_in_young(oop obj) const; |
1 | 196 |
}; |
7397 | 197 |
|
9336
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
198 |
class ClearNoncleanCardWrapper: public MemRegionClosure { |
9624
c3657c3324ee
6883834: ParNew: assert(!_g->to()->is_in_reserved(obj),"Scanning field twice?") with LargeObjects tests
ysr
parents:
9336
diff
changeset
|
199 |
DirtyCardToOopClosure* _dirty_card_closure; |
9336
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
200 |
CardTableRS* _ct; |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
201 |
bool _is_par; |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
202 |
private: |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
203 |
// Clears the given card, return true if the corresponding card should be |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
204 |
// processed. |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
205 |
inline bool clear_card(jbyte* entry); |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
206 |
// Work methods called by the clear_card() |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
207 |
inline bool clear_card_serial(jbyte* entry); |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
208 |
inline bool clear_card_parallel(jbyte* entry); |
12118
36458db4ccf5
7068625: Testing 8 bytes of card table entries at a time speeds up card-scanning
brutisso
parents:
9624
diff
changeset
|
209 |
// check alignment of pointer |
36458db4ccf5
7068625: Testing 8 bytes of card table entries at a time speeds up card-scanning
brutisso
parents:
9624
diff
changeset
|
210 |
bool is_word_aligned(jbyte* entry); |
9336
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
211 |
|
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
212 |
public: |
30870
3050fdcdc60b
8080112: Replace and remove the last usages of CollectedHeap::n_par_threads()
stefank
parents:
30764
diff
changeset
|
213 |
ClearNoncleanCardWrapper(DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct, bool is_par); |
9336
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
214 |
void do_MemRegion(MemRegion mr); |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
215 |
}; |
413920193f83
7037276: Unnecessary double traversal of dirty card windows
ysr
parents:
7397
diff
changeset
|
216 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49733
diff
changeset
|
217 |
#endif // SHARE_GC_SHARED_CARDTABLERS_HPP |