equal
deleted
inserted
replaced
163 assert(_humongous_start_region == NULL, |
163 assert(_humongous_start_region == NULL, |
164 "we should have already filtered out humongous regions"); |
164 "we should have already filtered out humongous regions"); |
165 assert(_end == orig_end(), |
165 assert(_end == orig_end(), |
166 "we should have already filtered out humongous regions"); |
166 "we should have already filtered out humongous regions"); |
167 assert(!in_collection_set(), |
167 assert(!in_collection_set(), |
168 err_msg("Should not clear heap region %u in the collection set", hrm_index())); |
168 "Should not clear heap region %u in the collection set", hrm_index()); |
169 |
169 |
170 set_allocation_context(AllocationContext::system()); |
170 set_allocation_context(AllocationContext::system()); |
171 set_young_index_in_cset(-1); |
171 set_young_index_in_cset(-1); |
172 uninstall_surv_rate_group(); |
172 uninstall_surv_rate_group(); |
173 set_free(); |
173 set_free(); |
290 hr_clear(false /*par*/, false /*clear_space*/); |
290 hr_clear(false /*par*/, false /*clear_space*/); |
291 set_top(bottom()); |
291 set_top(bottom()); |
292 record_timestamp(); |
292 record_timestamp(); |
293 |
293 |
294 assert(mr.end() == orig_end(), |
294 assert(mr.end() == orig_end(), |
295 err_msg("Given region end address " PTR_FORMAT " should match exactly " |
295 "Given region end address " PTR_FORMAT " should match exactly " |
296 "bottom plus one region size, i.e. " PTR_FORMAT, |
296 "bottom plus one region size, i.e. " PTR_FORMAT, |
297 p2i(mr.end()), p2i(orig_end()))); |
297 p2i(mr.end()), p2i(orig_end())); |
298 } |
298 } |
299 |
299 |
300 CompactibleSpace* HeapRegion::next_compaction_space() const { |
300 CompactibleSpace* HeapRegion::next_compaction_space() const { |
301 return G1CollectedHeap::heap()->next_compaction_region(this); |
301 return G1CollectedHeap::heap()->next_compaction_region(this); |
302 } |
302 } |
325 |
325 |
326 void HeapRegion::note_self_forwarding_removal_end(bool during_initial_mark, |
326 void HeapRegion::note_self_forwarding_removal_end(bool during_initial_mark, |
327 bool during_conc_mark, |
327 bool during_conc_mark, |
328 size_t marked_bytes) { |
328 size_t marked_bytes) { |
329 assert(marked_bytes <= used(), |
329 assert(marked_bytes <= used(), |
330 err_msg("marked: " SIZE_FORMAT " used: " SIZE_FORMAT, marked_bytes, used())); |
330 "marked: " SIZE_FORMAT " used: " SIZE_FORMAT, marked_bytes, used()); |
331 _prev_top_at_mark_start = top(); |
331 _prev_top_at_mark_start = top(); |
332 _prev_marked_bytes = marked_bytes; |
332 _prev_marked_bytes = marked_bytes; |
333 } |
333 } |
334 |
334 |
335 HeapWord* |
335 HeapWord* |