equal
deleted
inserted
replaced
139 } |
139 } |
140 |
140 |
141 void G1PageBasedVirtualSpace::commit_tail() { |
141 void G1PageBasedVirtualSpace::commit_tail() { |
142 vmassert(_tail_size > 0, "The size of the tail area must be > 0 when reaching here"); |
142 vmassert(_tail_size > 0, "The size of the tail area must be > 0 when reaching here"); |
143 |
143 |
144 char* const aligned_end_address = (char*)align_ptr_down(_high_boundary, _page_size); |
144 char* const aligned_end_address = align_ptr_down(_high_boundary, _page_size); |
145 os::commit_memory_or_exit(aligned_end_address, _tail_size, os::vm_page_size(), _executable, |
145 os::commit_memory_or_exit(aligned_end_address, _tail_size, os::vm_page_size(), _executable, |
146 err_msg("Failed to commit tail area from " PTR_FORMAT " to " PTR_FORMAT " of length " SIZE_FORMAT ".", |
146 err_msg("Failed to commit tail area from " PTR_FORMAT " to " PTR_FORMAT " of length " SIZE_FORMAT ".", |
147 p2i(aligned_end_address), p2i(_high_boundary), _tail_size)); |
147 p2i(aligned_end_address), p2i(_high_boundary), _tail_size)); |
148 } |
148 } |
149 |
149 |