equal
deleted
inserted
replaced
448 // address "addr". We say "blocks" instead of "object" since some heaps |
448 // address "addr". We say "blocks" instead of "object" since some heaps |
449 // may not pack objects densely; a chunk may either be an object or a |
449 // may not pack objects densely; a chunk may either be an object or a |
450 // non-object. |
450 // non-object. |
451 virtual HeapWord* block_start(const void* addr) const = 0; |
451 virtual HeapWord* block_start(const void* addr) const = 0; |
452 |
452 |
453 // Requires "addr" to be the start of a chunk, and returns its size. |
|
454 // "addr + size" is required to be the start of a new chunk, or the end |
|
455 // of the active area of the heap. |
|
456 virtual size_t block_size(const HeapWord* addr) const = 0; |
|
457 |
|
458 // Requires "addr" to be the start of a block, and returns "TRUE" iff |
453 // Requires "addr" to be the start of a block, and returns "TRUE" iff |
459 // the block is an object. |
454 // the block is an object. |
460 virtual bool block_is_obj(const HeapWord* addr) const = 0; |
455 virtual bool block_is_obj(const HeapWord* addr) const = 0; |
461 |
456 |
462 // Returns the longest time (in ms) that has elapsed since the last |
457 // Returns the longest time (in ms) that has elapsed since the last |