src/share/vm/gc_implementation/g1/sparsePRT.cpp

Print this page
rev 6923 : imported patch 8054819-rename-heapregionseq

*** 451,461 **** } bool SparsePRT::add_card(RegionIdx_t region_id, CardIdx_t card_index) { #if SPARSE_PRT_VERBOSE gclog_or_tty->print_cr(" Adding card %d from region %d to region %u sparse.", ! card_index, region_id, _hr->hrs_index()); #endif if (_next->occupied_entries() * 2 > _next->capacity()) { expand(); } return _next->add_card(region_id, card_index); --- 451,461 ---- } bool SparsePRT::add_card(RegionIdx_t region_id, CardIdx_t card_index) { #if SPARSE_PRT_VERBOSE gclog_or_tty->print_cr(" Adding card %d from region %d to region %u sparse.", ! card_index, region_id, _hr->hrm_index()); #endif if (_next->occupied_entries() * 2 > _next->capacity()) { expand(); } return _next->add_card(region_id, card_index);
*** 503,513 **** RSHashTable* last = _next; _next = new RSHashTable(last->capacity() * 2); #if SPARSE_PRT_VERBOSE gclog_or_tty->print_cr(" Expanded sparse table for %u to %d.", ! _hr->hrs_index(), _next->capacity()); #endif for (size_t i = 0; i < last->capacity(); i++) { SparsePRTEntry* e = last->entry((int)i); if (e->valid_entry()) { #if SPARSE_PRT_VERBOSE --- 503,513 ---- RSHashTable* last = _next; _next = new RSHashTable(last->capacity() * 2); #if SPARSE_PRT_VERBOSE gclog_or_tty->print_cr(" Expanded sparse table for %u to %d.", ! _hr->hrm_index(), _next->capacity()); #endif for (size_t i = 0; i < last->capacity(); i++) { SparsePRTEntry* e = last->entry((int)i); if (e->valid_entry()) { #if SPARSE_PRT_VERBOSE