author | tschatzl |
Wed, 25 Nov 2015 14:43:29 +0100 | |
changeset 34300 | 6075c1e0e913 |
parent 34249 | a015a11067a2 |
child 35461 | 1068dcb8d315 |
permissions | -rw-r--r-- |
1374 | 1 |
/* |
30565
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
2 |
* Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
1374 | 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:
1374
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1374
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:
1374
diff
changeset
|
21 |
* questions. |
1374 | 22 |
* |
23 |
*/ |
|
24 |
||
30764 | 25 |
#ifndef SHARE_VM_GC_G1_G1BLOCKOFFSETTABLE_HPP |
26 |
#define SHARE_VM_GC_G1_G1BLOCKOFFSETTABLE_HPP |
|
7397 | 27 |
|
30764 | 28 |
#include "gc/g1/g1RegionToSpaceMapper.hpp" |
7397 | 29 |
#include "memory/memRegion.hpp" |
30291
54cdc5c1a9cb
8068352: Move virtualspace.* out of src/share/vm/runtime to memory directory
coleenp
parents:
27149
diff
changeset
|
30 |
#include "memory/virtualspace.hpp" |
7397 | 31 |
#include "utilities/globalDefinitions.hpp" |
32 |
||
1374 | 33 |
// The CollectedHeap type requires subtypes to implement a method |
34 |
// "block_start". For some subtypes, notably generational |
|
35 |
// systems using card-table-based write barriers, the efficiency of this |
|
36 |
// operation may be important. Implementations of the "BlockOffsetArray" |
|
37 |
// class may be useful in providing such efficient implementations. |
|
38 |
// |
|
39 |
// While generally mirroring the structure of the BOT for GenCollectedHeap, |
|
40 |
// the following types are tailored more towards G1's uses; these should, |
|
41 |
// however, be merged back into a common BOT to avoid code duplication |
|
42 |
// and reduce maintenance overhead. |
|
43 |
// |
|
44 |
// G1BlockOffsetTable (abstract) |
|
45 |
// -- G1BlockOffsetArray (uses G1BlockOffsetSharedArray) |
|
46 |
// -- G1BlockOffsetArrayContigSpace |
|
47 |
// |
|
48 |
// A main impediment to the consolidation of this code might be the |
|
49 |
// effect of making some of the block_start*() calls non-const as |
|
50 |
// below. Whether that might adversely affect performance optimizations |
|
51 |
// that compilers might normally perform in the case of non-G1 |
|
52 |
// collectors needs to be carefully investigated prior to any such |
|
53 |
// consolidation. |
|
54 |
||
55 |
// Forward declarations |
|
56 |
class G1BlockOffsetSharedArray; |
|
25361
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
57 |
class G1OffsetTableContigSpace; |
1374 | 58 |
|
59 |
class G1BlockOffsetTable VALUE_OBJ_CLASS_SPEC { |
|
60 |
friend class VMStructs; |
|
61 |
protected: |
|
62 |
// These members describe the region covered by the table. |
|
63 |
||
64 |
// The space this table is covering. |
|
65 |
HeapWord* _bottom; // == reserved.start |
|
66 |
HeapWord* _end; // End of currently allocated region. |
|
67 |
||
68 |
public: |
|
69 |
// Initialize the table to cover the given space. |
|
70 |
// The contents of the initial table are undefined. |
|
71 |
G1BlockOffsetTable(HeapWord* bottom, HeapWord* end) : |
|
72 |
_bottom(bottom), _end(end) |
|
73 |
{ |
|
74 |
assert(_bottom <= _end, "arguments out of order"); |
|
75 |
} |
|
76 |
||
77 |
// Note that the committed size of the covered space may have changed, |
|
78 |
// so the table size might also wish to change. |
|
79 |
virtual void resize(size_t new_word_size) = 0; |
|
80 |
||
81 |
virtual void set_bottom(HeapWord* new_bottom) { |
|
14584
bd4290e6d0a5
7194633: G1: Assertion and guarantee failures in block offset table
johnc
parents:
13481
diff
changeset
|
82 |
assert(new_bottom <= _end, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31592
diff
changeset
|
83 |
"new_bottom (" PTR_FORMAT ") > _end (" PTR_FORMAT ")", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31592
diff
changeset
|
84 |
p2i(new_bottom), p2i(_end)); |
1374 | 85 |
_bottom = new_bottom; |
86 |
resize(pointer_delta(_end, _bottom)); |
|
87 |
} |
|
88 |
||
89 |
// Requires "addr" to be contained by a block, and returns the address of |
|
90 |
// the start of that block. (May have side effects, namely updating of |
|
91 |
// shared array entries that "point" too far backwards. This can occur, |
|
92 |
// for example, when LAB allocation is used in a space covered by the |
|
93 |
// table.) |
|
94 |
virtual HeapWord* block_start_unsafe(const void* addr) = 0; |
|
95 |
// Same as above, but does not have any of the possible side effects |
|
96 |
// discussed above. |
|
97 |
virtual HeapWord* block_start_unsafe_const(const void* addr) const = 0; |
|
98 |
||
99 |
// Returns the address of the start of the block containing "addr", or |
|
100 |
// else "null" if it is covered by no block. (May have side effects, |
|
101 |
// namely updating of shared array entries that "point" too far |
|
102 |
// backwards. This can occur, for example, when lab allocation is used |
|
103 |
// in a space covered by the table.) |
|
104 |
inline HeapWord* block_start(const void* addr); |
|
105 |
// Same as above, but does not have any of the possible side effects |
|
106 |
// discussed above. |
|
107 |
inline HeapWord* block_start_const(const void* addr) const; |
|
108 |
}; |
|
109 |
||
26160 | 110 |
class G1BlockOffsetSharedArrayMappingChangedListener : public G1MappingChangedListener { |
111 |
public: |
|
27149 | 112 |
virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled) { |
26322 | 113 |
// Nothing to do. The BOT is hard-wired to be part of the HeapRegion, and we cannot |
114 |
// retrieve it here since this would cause firing of several asserts. The code |
|
115 |
// executed after commit of a region already needs to do some re-initialization of |
|
116 |
// the HeapRegion, so we combine that. |
|
117 |
} |
|
26160 | 118 |
}; |
119 |
||
1374 | 120 |
// This implementation of "G1BlockOffsetTable" divides the covered region |
121 |
// into "N"-word subregions (where "N" = 2^"LogN". An array with an entry |
|
122 |
// for each such subregion indicates how far back one must go to find the |
|
123 |
// start of the chunk that includes the first word of the subregion. |
|
124 |
// |
|
125 |
// Each BlockOffsetArray is owned by a Space. However, the actual array |
|
126 |
// may be shared by several BlockOffsetArrays; this is useful |
|
127 |
// when a single resizable area (such as a generation) is divided up into |
|
128 |
// several spaces in which contiguous allocation takes place, |
|
129 |
// such as, for example, in G1 or in the train generation.) |
|
130 |
||
131 |
// Here is the shared array type. |
|
132 |
||
13195 | 133 |
class G1BlockOffsetSharedArray: public CHeapObj<mtGC> { |
1374 | 134 |
friend class G1BlockOffsetArray; |
135 |
friend class G1BlockOffsetArrayContigSpace; |
|
136 |
friend class VMStructs; |
|
137 |
||
138 |
private: |
|
26160 | 139 |
G1BlockOffsetSharedArrayMappingChangedListener _listener; |
1374 | 140 |
// The reserved region covered by the shared array. |
141 |
MemRegion _reserved; |
|
142 |
||
143 |
// End of the current committed region. |
|
144 |
HeapWord* _end; |
|
145 |
||
146 |
// Array for keeping offsets for retrieving object start fast given an |
|
147 |
// address. |
|
148 |
u_char* _offset_array; // byte array keeping backwards offsets |
|
149 |
||
14584
bd4290e6d0a5
7194633: G1: Assertion and guarantee failures in block offset table
johnc
parents:
13481
diff
changeset
|
150 |
void check_offset(size_t offset, const char* msg) const { |
bd4290e6d0a5
7194633: G1: Assertion and guarantee failures in block offset table
johnc
parents:
13481
diff
changeset
|
151 |
assert(offset <= N_words, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31592
diff
changeset
|
152 |
"%s - offset: " SIZE_FORMAT ", N_words: %u", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31592
diff
changeset
|
153 |
msg, offset, (uint)N_words); |
14584
bd4290e6d0a5
7194633: G1: Assertion and guarantee failures in block offset table
johnc
parents:
13481
diff
changeset
|
154 |
} |
bd4290e6d0a5
7194633: G1: Assertion and guarantee failures in block offset table
johnc
parents:
13481
diff
changeset
|
155 |
|
1374 | 156 |
// Bounds checking accessors: |
157 |
// For performance these have to devolve to array accesses in product builds. |
|
26160 | 158 |
inline u_char offset_array(size_t index) const; |
1374 | 159 |
|
26160 | 160 |
void set_offset_array_raw(size_t index, u_char offset) { |
1374 | 161 |
_offset_array[index] = offset; |
162 |
} |
|
163 |
||
26160 | 164 |
inline void set_offset_array(size_t index, u_char offset); |
165 |
||
166 |
inline void set_offset_array(size_t index, HeapWord* high, HeapWord* low); |
|
1374 | 167 |
|
26160 | 168 |
inline void set_offset_array(size_t left, size_t right, u_char offset); |
1374 | 169 |
|
170 |
bool is_card_boundary(HeapWord* p) const; |
|
171 |
||
30583
74ff3d21d616
8079330: Circular dependency between G1CollectedHeap and G1BlockOffsetSharedArray
pliden
parents:
30579
diff
changeset
|
172 |
void check_index(size_t index, const char* msg) const NOT_DEBUG_RETURN; |
74ff3d21d616
8079330: Circular dependency between G1CollectedHeap and G1BlockOffsetSharedArray
pliden
parents:
30579
diff
changeset
|
173 |
|
26160 | 174 |
public: |
175 |
||
1374 | 176 |
// Return the number of slots needed for an offset array |
177 |
// that covers mem_region_words words. |
|
26160 | 178 |
static size_t compute_size(size_t mem_region_words) { |
179 |
size_t number_of_slots = (mem_region_words / N_words); |
|
180 |
return ReservedSpace::allocation_align_size_up(number_of_slots); |
|
1374 | 181 |
} |
182 |
||
30565
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
183 |
// Returns how many bytes of the heap a single byte of the BOT corresponds to. |
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
184 |
static size_t heap_map_factor() { |
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
185 |
return N_bytes; |
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
186 |
} |
ebd5af27fe02
8073632: Make auxiliary data structures know their own translation factor
tschatzl
parents:
27149
diff
changeset
|
187 |
|
1374 | 188 |
enum SomePublicConstants { |
189 |
LogN = 9, |
|
190 |
LogN_words = LogN - LogHeapWordSize, |
|
191 |
N_bytes = 1 << LogN, |
|
192 |
N_words = 1 << LogN_words |
|
193 |
}; |
|
194 |
||
195 |
// Initialize the table to cover from "base" to (at least) |
|
196 |
// "base + init_word_size". In the future, the table may be expanded |
|
197 |
// (see "resize" below) up to the size of "_reserved" (which must be at |
|
198 |
// least "init_word_size".) The contents of the initial table are |
|
199 |
// undefined; it is the responsibility of the constituent |
|
200 |
// G1BlockOffsetTable(s) to initialize cards. |
|
26160 | 201 |
G1BlockOffsetSharedArray(MemRegion heap, G1RegionToSpaceMapper* storage); |
1374 | 202 |
|
203 |
// Return the appropriate index into "_offset_array" for "p". |
|
204 |
inline size_t index_for(const void* p) const; |
|
26160 | 205 |
inline size_t index_for_raw(const void* p) const; |
1374 | 206 |
|
207 |
// Return the address indicating the start of the region corresponding to |
|
208 |
// "index" in "_offset_array". |
|
209 |
inline HeapWord* address_for_index(size_t index) const; |
|
26160 | 210 |
// Variant of address_for_index that does not check the index for validity. |
211 |
inline HeapWord* address_for_index_raw(size_t index) const { |
|
212 |
return _reserved.start() + (index << LogN_words); |
|
213 |
} |
|
1374 | 214 |
}; |
215 |
||
216 |
// And here is the G1BlockOffsetTable subtype that uses the array. |
|
217 |
||
218 |
class G1BlockOffsetArray: public G1BlockOffsetTable { |
|
219 |
friend class G1BlockOffsetSharedArray; |
|
220 |
friend class G1BlockOffsetArrayContigSpace; |
|
221 |
friend class VMStructs; |
|
222 |
private: |
|
223 |
enum SomePrivateConstants { |
|
224 |
N_words = G1BlockOffsetSharedArray::N_words, |
|
225 |
LogN = G1BlockOffsetSharedArray::LogN |
|
226 |
}; |
|
227 |
||
228 |
// This is the array, which can be shared by several BlockOffsetArray's |
|
229 |
// servicing different |
|
230 |
G1BlockOffsetSharedArray* _array; |
|
231 |
||
232 |
// The space that owns this subregion. |
|
25361
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
233 |
G1OffsetTableContigSpace* _gsp; |
1374 | 234 |
|
235 |
// The portion [_unallocated_block, _sp.end()) of the space that |
|
236 |
// is a single block known not to contain any objects. |
|
237 |
// NOTE: See BlockOffsetArrayUseUnallocatedBlock flag. |
|
238 |
HeapWord* _unallocated_block; |
|
239 |
||
240 |
// Sets the entries |
|
241 |
// corresponding to the cards starting at "start" and ending at "end" |
|
242 |
// to point back to the card before "start": the interval [start, end) |
|
243 |
// is right-open. |
|
244 |
void set_remainder_to_point_to_start(HeapWord* start, HeapWord* end); |
|
245 |
// Same as above, except that the args here are a card _index_ interval |
|
246 |
// that is closed: [start_index, end_index] |
|
247 |
void set_remainder_to_point_to_start_incl(size_t start, size_t end); |
|
248 |
||
249 |
protected: |
|
250 |
||
25361
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
251 |
G1OffsetTableContigSpace* gsp() const { return _gsp; } |
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
252 |
|
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
253 |
inline size_t block_size(const HeapWord* p) const; |
1374 | 254 |
|
255 |
// Returns the address of a block whose start is at most "addr". |
|
256 |
// If "has_max_index" is true, "assumes "max_index" is the last valid one |
|
257 |
// in the array. |
|
258 |
inline HeapWord* block_at_or_preceding(const void* addr, |
|
259 |
bool has_max_index, |
|
260 |
size_t max_index) const; |
|
261 |
||
262 |
// "q" is a block boundary that is <= "addr"; "n" is the address of the |
|
263 |
// next block (or the end of the space.) Return the address of the |
|
264 |
// beginning of the block that contains "addr". Does so without side |
|
265 |
// effects (see, e.g., spec of block_start.) |
|
266 |
inline HeapWord* |
|
267 |
forward_to_block_containing_addr_const(HeapWord* q, HeapWord* n, |
|
268 |
const void* addr) const; |
|
269 |
||
270 |
// "q" is a block boundary that is <= "addr"; return the address of the |
|
271 |
// beginning of the block that contains "addr". May have side effects |
|
272 |
// on "this", by updating imprecise entries. |
|
273 |
inline HeapWord* forward_to_block_containing_addr(HeapWord* q, |
|
274 |
const void* addr); |
|
275 |
||
276 |
// "q" is a block boundary that is <= "addr"; "n" is the address of the |
|
277 |
// next block (or the end of the space.) Return the address of the |
|
278 |
// beginning of the block that contains "addr". May have side effects |
|
279 |
// on "this", by updating imprecise entries. |
|
280 |
HeapWord* forward_to_block_containing_addr_slow(HeapWord* q, |
|
281 |
HeapWord* n, |
|
282 |
const void* addr); |
|
283 |
||
284 |
// Requires that "*threshold_" be the first array entry boundary at or |
|
285 |
// above "blk_start", and that "*index_" be the corresponding array |
|
286 |
// index. If the block starts at or crosses "*threshold_", records |
|
287 |
// "blk_start" as the appropriate block start for the array index |
|
288 |
// starting at "*threshold_", and for any other indices crossed by the |
|
289 |
// block. Updates "*threshold_" and "*index_" to correspond to the first |
|
290 |
// index after the block end. |
|
291 |
void alloc_block_work2(HeapWord** threshold_, size_t* index_, |
|
292 |
HeapWord* blk_start, HeapWord* blk_end); |
|
293 |
||
294 |
public: |
|
295 |
// The space may not have it's bottom and top set yet, which is why the |
|
26322 | 296 |
// region is passed as a parameter. The elements of the array are |
297 |
// initialized to zero. |
|
298 |
G1BlockOffsetArray(G1BlockOffsetSharedArray* array, MemRegion mr); |
|
1374 | 299 |
|
300 |
// Note: this ought to be part of the constructor, but that would require |
|
301 |
// "this" to be passed as a parameter to a member constructor for |
|
302 |
// the containing concrete subtype of Space. |
|
303 |
// This would be legal C++, but MS VC++ doesn't allow it. |
|
25361
5146d1e12a2f
8047820: G1 Block offset table does not need to support generic Space classes
mgerdin
parents:
24424
diff
changeset
|
304 |
void set_space(G1OffsetTableContigSpace* sp); |
1374 | 305 |
|
306 |
// Resets the covered region to one with the same _bottom as before but |
|
307 |
// the "new_word_size". |
|
308 |
void resize(size_t new_word_size); |
|
309 |
||
310 |
virtual HeapWord* block_start_unsafe(const void* addr); |
|
311 |
virtual HeapWord* block_start_unsafe_const(const void* addr) const; |
|
312 |
||
26571
5fe42815e865
8025564: gc/memory/UniThread/Linear1 times out during heap verification
brutisso
parents:
26322
diff
changeset
|
313 |
void check_all_cards(size_t left_card, size_t right_card) const; |
7904
e90e097fced4
7007068: G1: refine the BOT during evac failure handling
tonyp
parents:
7397
diff
changeset
|
314 |
|
26571
5fe42815e865
8025564: gc/memory/UniThread/Linear1 times out during heap verification
brutisso
parents:
26322
diff
changeset
|
315 |
void verify() const; |
6983
a8c50cedbce9
6991377: G1: race between concurrent refinement and humongous object allocation
tonyp
parents:
5547
diff
changeset
|
316 |
|
7904
e90e097fced4
7007068: G1: refine the BOT during evac failure handling
tonyp
parents:
7397
diff
changeset
|
317 |
virtual void print_on(outputStream* out) PRODUCT_RETURN; |
1374 | 318 |
}; |
319 |
||
320 |
// A subtype of BlockOffsetArray that takes advantage of the fact |
|
321 |
// that its underlying space is a ContiguousSpace, so that its "active" |
|
322 |
// region can be more efficiently tracked (than for a non-contiguous space). |
|
323 |
class G1BlockOffsetArrayContigSpace: public G1BlockOffsetArray { |
|
324 |
friend class VMStructs; |
|
325 |
||
326 |
// allocation boundary at which offset array must be updated |
|
327 |
HeapWord* _next_offset_threshold; |
|
328 |
size_t _next_offset_index; // index corresponding to that boundary |
|
329 |
||
330 |
// Work function to be called when allocation start crosses the next |
|
331 |
// threshold in the contig space. |
|
332 |
void alloc_block_work1(HeapWord* blk_start, HeapWord* blk_end) { |
|
333 |
alloc_block_work2(&_next_offset_threshold, &_next_offset_index, |
|
334 |
blk_start, blk_end); |
|
335 |
} |
|
336 |
||
26322 | 337 |
// Zero out the entry for _bottom (offset will be zero). Does not check for availability of the |
26160 | 338 |
// memory first. |
339 |
void zero_bottom_entry_raw(); |
|
340 |
// Variant of initialize_threshold that does not check for availability of the |
|
341 |
// memory first. |
|
342 |
HeapWord* initialize_threshold_raw(); |
|
1374 | 343 |
public: |
344 |
G1BlockOffsetArrayContigSpace(G1BlockOffsetSharedArray* array, MemRegion mr); |
|
345 |
||
346 |
// Initialize the threshold to reflect the first boundary after the |
|
347 |
// bottom of the covered region. |
|
348 |
HeapWord* initialize_threshold(); |
|
349 |
||
26157
70eddb655686
8054818: Refactor HeapRegionSeq to manage heap region and auxiliary data
tschatzl
parents:
25361
diff
changeset
|
350 |
void reset_bot() { |
26160 | 351 |
zero_bottom_entry_raw(); |
352 |
initialize_threshold_raw(); |
|
26157
70eddb655686
8054818: Refactor HeapRegionSeq to manage heap region and auxiliary data
tschatzl
parents:
25361
diff
changeset
|
353 |
} |
1374 | 354 |
|
355 |
// Return the next threshold, the point at which the table should be |
|
356 |
// updated. |
|
357 |
HeapWord* threshold() const { return _next_offset_threshold; } |
|
358 |
||
359 |
// These must be guaranteed to work properly (i.e., do nothing) |
|
360 |
// when "blk_start" ("blk" for second version) is "NULL". In this |
|
361 |
// implementation, that's true because NULL is represented as 0, and thus |
|
362 |
// never exceeds the "_next_offset_threshold". |
|
363 |
void alloc_block(HeapWord* blk_start, HeapWord* blk_end) { |
|
33786
ac8da6513351
8139867: Change how startsHumongous and continuesHumongous regions work in G1.
david
parents:
33105
diff
changeset
|
364 |
if (blk_end > _next_offset_threshold) { |
1374 | 365 |
alloc_block_work1(blk_start, blk_end); |
33786
ac8da6513351
8139867: Change how startsHumongous and continuesHumongous regions work in G1.
david
parents:
33105
diff
changeset
|
366 |
} |
1374 | 367 |
} |
368 |
void alloc_block(HeapWord* blk, size_t size) { |
|
33786
ac8da6513351
8139867: Change how startsHumongous and continuesHumongous regions work in G1.
david
parents:
33105
diff
changeset
|
369 |
alloc_block(blk, blk+size); |
1374 | 370 |
} |
371 |
||
372 |
HeapWord* block_start_unsafe(const void* addr); |
|
373 |
HeapWord* block_start_unsafe_const(const void* addr) const; |
|
6983
a8c50cedbce9
6991377: G1: race between concurrent refinement and humongous object allocation
tonyp
parents:
5547
diff
changeset
|
374 |
|
34249
a015a11067a2
8138681: Runtime.getFreeMemory() reports wrong value after humongous allocation.
david
parents:
33786
diff
changeset
|
375 |
void set_for_starts_humongous(HeapWord* obj_top, size_t fill_size); |
7904
e90e097fced4
7007068: G1: refine the BOT during evac failure handling
tonyp
parents:
7397
diff
changeset
|
376 |
|
e90e097fced4
7007068: G1: refine the BOT during evac failure handling
tonyp
parents:
7397
diff
changeset
|
377 |
virtual void print_on(outputStream* out) PRODUCT_RETURN; |
1374 | 378 |
}; |
7397 | 379 |
|
30764 | 380 |
#endif // SHARE_VM_GC_G1_G1BLOCKOFFSETTABLE_HPP |