comparison src/share/vm/gc_implementation/g1/sparsePRT.cpp @ 942:2c79770d1f6e

6819085: G1: use larger and/or user settable region size Summary: Instead of the region size being hard-coded, allow the user to set it. Reviewed-by: jmasa, johnc, apetrusenko
author tonyp
date Thu, 30 Jul 2009 16:22:58 -0400
parents bd02caa94611
children fa2f65ebeb08
comparison
equal deleted inserted replaced
941:8b46c4d82093 942:2c79770d1f6e
345 } 345 }
346 346
347 size_t /* RSHashTable:: */ RSHashTableIter::compute_card_ind(CardIdx_t ci) { 347 size_t /* RSHashTable:: */ RSHashTableIter::compute_card_ind(CardIdx_t ci) {
348 return 348 return
349 _heap_bot_card_ind 349 _heap_bot_card_ind
350 + (_rsht->entry(_bl_ind)->r_ind() * CardsPerRegion) 350 + (_rsht->entry(_bl_ind)->r_ind() * HeapRegion::CardsPerRegion)
351 + ci; 351 + ci;
352 } 352 }
353 353
354 bool /* RSHashTable:: */ RSHashTableIter::has_next(size_t& card_index) { 354 bool /* RSHashTable:: */ RSHashTableIter::has_next(size_t& card_index) {
355 _card_ind++; 355 _card_ind++;