equal
deleted
inserted
replaced
662 } else { |
662 } else { |
663 top = last_address + 1; |
663 top = last_address + 1; |
664 next_region = NULL; |
664 next_region = NULL; |
665 } |
665 } |
666 curr_region->set_top(top); |
666 curr_region->set_top(top); |
667 curr_region->set_first_dead(top); |
|
668 curr_region->set_end_of_live(top); |
|
669 curr_region = next_region; |
667 curr_region = next_region; |
670 } |
668 } |
671 |
669 |
672 // Notify mark-sweep of the archive |
670 // Notify mark-sweep of the archive |
673 G1ArchiveAllocator::set_range_archive(curr_range, open); |
671 G1ArchiveAllocator::set_range_archive(curr_range, open); |
3976 size_t words_survived = _surviving_young_words[r->young_index_in_cset()]; |
3974 size_t words_survived = _surviving_young_words[r->young_index_in_cset()]; |
3977 r->record_surv_words_in_group(words_survived); |
3975 r->record_surv_words_in_group(words_survived); |
3978 } |
3976 } |
3979 |
3977 |
3980 if (!r->evacuation_failed()) { |
3978 if (!r->evacuation_failed()) { |
3981 assert(r->not_empty(), "Region %u is an empty region in the collection set.", r->hrm_index()); |
3979 assert(!r->is_empty(), "Region %u is an empty region in the collection set.", r->hrm_index()); |
3982 _before_used_bytes += r->used(); |
3980 _before_used_bytes += r->used(); |
3983 g1h->free_region(r, |
3981 g1h->free_region(r, |
3984 &_local_free_list, |
3982 &_local_free_list, |
3985 true, /* skip_remset */ |
3983 true, /* skip_remset */ |
3986 true, /* skip_hot_card_cache */ |
3984 true, /* skip_hot_card_cache */ |