equal
deleted
inserted
replaced
163 _hr->cross_threshold(end_first_obj, end); |
163 _hr->cross_threshold(end_first_obj, end); |
164 #ifdef ASSERT |
164 #ifdef ASSERT |
165 size_t size_second_obj = ((oop)end_first_obj)->size(); |
165 size_t size_second_obj = ((oop)end_first_obj)->size(); |
166 HeapWord* end_of_second_obj = end_first_obj + size_second_obj; |
166 HeapWord* end_of_second_obj = end_first_obj + size_second_obj; |
167 assert(end == end_of_second_obj, |
167 assert(end == end_of_second_obj, |
168 err_msg("More than two objects were used to fill the area from " PTR_FORMAT " to " PTR_FORMAT ", " |
168 "More than two objects were used to fill the area from " PTR_FORMAT " to " PTR_FORMAT ", " |
169 "second objects size " SIZE_FORMAT " ends at " PTR_FORMAT, |
169 "second objects size " SIZE_FORMAT " ends at " PTR_FORMAT, |
170 p2i(start), p2i(end), size_second_obj, p2i(end_of_second_obj))); |
170 p2i(start), p2i(end), size_second_obj, p2i(end_of_second_obj)); |
171 #endif |
171 #endif |
172 } |
172 } |
173 } |
173 } |
174 _cm->clearRangePrevBitmap(mr); |
174 _cm->clearRangePrevBitmap(mr); |
175 } |
175 } |
213 |
213 |
214 bool doHeapRegion(HeapRegion *hr) { |
214 bool doHeapRegion(HeapRegion *hr) { |
215 bool during_initial_mark = _g1h->collector_state()->during_initial_mark_pause(); |
215 bool during_initial_mark = _g1h->collector_state()->during_initial_mark_pause(); |
216 bool during_conc_mark = _g1h->collector_state()->mark_in_progress(); |
216 bool during_conc_mark = _g1h->collector_state()->mark_in_progress(); |
217 |
217 |
218 assert(!hr->is_pinned(), err_msg("Unexpected pinned region at index %u", hr->hrm_index())); |
218 assert(!hr->is_pinned(), "Unexpected pinned region at index %u", hr->hrm_index()); |
219 assert(hr->in_collection_set(), "bad CS"); |
219 assert(hr->in_collection_set(), "bad CS"); |
220 |
220 |
221 if (_hrclaimer->claim_region(hr->hrm_index())) { |
221 if (_hrclaimer->claim_region(hr->hrm_index())) { |
222 if (hr->evacuation_failed()) { |
222 if (hr->evacuation_failed()) { |
223 hr->note_self_forwarding_removal_start(during_initial_mark, |
223 hr->note_self_forwarding_removal_start(during_initial_mark, |