equal
deleted
inserted
replaced
90 // Pretouch the given memory range. |
90 // Pretouch the given memory range. |
91 void pretouch_internal(size_t start_page, size_t end_page); |
91 void pretouch_internal(size_t start_page, size_t end_page); |
92 |
92 |
93 // Returns the index of the page which contains the given address. |
93 // Returns the index of the page which contains the given address. |
94 size_t addr_to_page_index(char* addr) const; |
94 size_t addr_to_page_index(char* addr) const; |
95 // Returns the address of the given page index. |
|
96 char* page_start(size_t index) const; |
|
97 |
95 |
98 // Is the given page index the last page? |
96 // Is the given page index the last page? |
99 bool is_last_page(size_t index) const { return index == (_committed.size() - 1); } |
97 bool is_last_page(size_t index) const { return index == (_committed.size() - 1); } |
100 // Is the given page index the first after last page? |
98 // Is the given page index the first after last page? |
101 bool is_after_last_page(size_t index) const; |
99 bool is_after_last_page(size_t index) const; |
145 return x; |
143 return x; |
146 } |
144 } |
147 |
145 |
148 void check_for_contiguity() PRODUCT_RETURN; |
146 void check_for_contiguity() PRODUCT_RETURN; |
149 |
147 |
|
148 // Returns the address of the given page index. |
|
149 char* page_start(size_t index) const; |
|
150 size_t page_size() const; |
|
151 |
150 // Debugging |
152 // Debugging |
151 void print_on(outputStream* out) PRODUCT_RETURN; |
153 void print_on(outputStream* out) PRODUCT_RETURN; |
152 void print(); |
154 void print(); |
153 }; |
155 }; |
154 |
156 |