equal
deleted
inserted
replaced
120 return _committed.get_next_one_offset(start_page, end_page) >= end_page; |
120 return _committed.get_next_one_offset(start_page, end_page) >= end_page; |
121 } |
121 } |
122 |
122 |
123 char* G1PageBasedVirtualSpace::page_start(size_t index) const { |
123 char* G1PageBasedVirtualSpace::page_start(size_t index) const { |
124 return _low_boundary + index * _page_size; |
124 return _low_boundary + index * _page_size; |
|
125 } |
|
126 |
|
127 size_t G1PageBasedVirtualSpace::page_size() const { |
|
128 assert(_page_size > 0, "Page size is not yet initialized."); |
|
129 return _page_size; |
125 } |
130 } |
126 |
131 |
127 bool G1PageBasedVirtualSpace::is_after_last_page(size_t index) const { |
132 bool G1PageBasedVirtualSpace::is_after_last_page(size_t index) const { |
128 guarantee(index <= _committed.size(), |
133 guarantee(index <= _committed.size(), |
129 "Given boundary page " SIZE_FORMAT " is beyond managed page count " SIZE_FORMAT, index, _committed.size()); |
134 "Given boundary page " SIZE_FORMAT " is beyond managed page count " SIZE_FORMAT, index, _committed.size()); |