src/hotspot/share/gc/shared/collectedHeap.hpp
changeset 54093 9d02451b536e
parent 53921 a590b6107ab3
child 54122 4b1426ed1c44
equal deleted inserted replaced
54092:48a02303574e 54093:9d02451b536e
   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