equal
deleted
inserted
replaced
276 // address "addr". We say "blocks" instead of "object" since some heaps |
276 // address "addr". We say "blocks" instead of "object" since some heaps |
277 // may not pack objects densely; a chunk may either be an object or a |
277 // may not pack objects densely; a chunk may either be an object or a |
278 // non-object. |
278 // non-object. |
279 virtual HeapWord* block_start(const void* addr) const; |
279 virtual HeapWord* block_start(const void* addr) const; |
280 |
280 |
281 // Requires "addr" to be the start of a chunk, and returns its size. |
|
282 // "addr + size" is required to be the start of a new chunk, or the end |
|
283 // of the active area of the heap. Assumes (and verifies in non-product |
|
284 // builds) that addr is in the allocated part of the heap and is |
|
285 // the start of a chunk. |
|
286 virtual size_t block_size(const HeapWord* addr) const; |
|
287 |
|
288 // Requires "addr" to be the start of a block, and returns "TRUE" iff |
281 // Requires "addr" to be the start of a block, and returns "TRUE" iff |
289 // the block is an object. Assumes (and verifies in non-product |
282 // the block is an object. Assumes (and verifies in non-product |
290 // builds) that addr is in the allocated part of the heap and is |
283 // builds) that addr is in the allocated part of the heap and is |
291 // the start of a chunk. |
284 // the start of a chunk. |
292 virtual bool block_is_obj(const HeapWord* addr) const; |
285 virtual bool block_is_obj(const HeapWord* addr) const; |