equal
deleted
inserted
replaced
108 |
108 |
109 // If addr is within the committed space return its corresponding |
109 // If addr is within the committed space return its corresponding |
110 // HeapRegion, otherwise return NULL. |
110 // HeapRegion, otherwise return NULL. |
111 inline HeapRegion* addr_to_region(HeapWord* addr) const; |
111 inline HeapRegion* addr_to_region(HeapWord* addr) const; |
112 |
112 |
113 // Return the HeapRegion that corresponds to the given |
|
114 // address. Assume the address is valid. |
|
115 inline HeapRegion* addr_to_region_unsafe(HeapWord* addr) const; |
|
116 |
|
117 // Return the number of regions that have been committed in the heap. |
113 // Return the number of regions that have been committed in the heap. |
118 uint length() const { return _committed_length; } |
114 uint length() const { return _committed_length; } |
119 |
115 |
120 // Return the maximum number of regions in the heap. |
116 // Return the maximum number of regions in the heap. |
121 uint max_length() const { return (uint)_regions.length(); } |
117 uint max_length() const { return (uint)_regions.length(); } |