equal
deleted
inserted
replaced
160 if (total_reserved < young_spec->max_size()) { |
160 if (total_reserved < young_spec->max_size()) { |
161 vm_exit_during_initialization("The size of the object heap + VM data exceeds " |
161 vm_exit_during_initialization("The size of the object heap + VM data exceeds " |
162 "the maximum representable size"); |
162 "the maximum representable size"); |
163 } |
163 } |
164 assert(total_reserved % alignment == 0, |
164 assert(total_reserved % alignment == 0, |
165 err_msg("Gen size; total_reserved=" SIZE_FORMAT ", alignment=" |
165 "Gen size; total_reserved=" SIZE_FORMAT ", alignment=" |
166 SIZE_FORMAT, total_reserved, alignment)); |
166 SIZE_FORMAT, total_reserved, alignment); |
167 |
167 |
168 *heap_rs = Universe::reserve_heap(total_reserved, alignment); |
168 *heap_rs = Universe::reserve_heap(total_reserved, alignment); |
169 return heap_rs->base(); |
169 return heap_rs->base(); |
170 } |
170 } |
171 |
171 |
889 } |
889 } |
890 |
890 |
891 bool GenCollectedHeap::is_in_young(oop p) { |
891 bool GenCollectedHeap::is_in_young(oop p) { |
892 bool result = ((HeapWord*)p) < _old_gen->reserved().start(); |
892 bool result = ((HeapWord*)p) < _old_gen->reserved().start(); |
893 assert(result == _young_gen->is_in_reserved(p), |
893 assert(result == _young_gen->is_in_reserved(p), |
894 err_msg("incorrect test - result=%d, p=" INTPTR_FORMAT, result, p2i((void*)p))); |
894 "incorrect test - result=%d, p=" INTPTR_FORMAT, result, p2i((void*)p)); |
895 return result; |
895 return result; |
896 } |
896 } |
897 |
897 |
898 // Returns "TRUE" iff "p" points into the committed areas of the heap. |
898 // Returns "TRUE" iff "p" points into the committed areas of the heap. |
899 bool GenCollectedHeap::is_in(const void* p) const { |
899 bool GenCollectedHeap::is_in(const void* p) const { |