comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 489:2494ab195856

6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes. Reviewed-by: ysr, mchung
author swamyv
date Mon, 15 Dec 2008 13:58:57 -0800
parents 37f87013dfd8
children 58054a18d735
comparison
equal deleted inserted replaced
487:80206b8a9128 489:2494ab195856
179 add_reference_work(from, /*parallel*/ false); 179 add_reference_work(from, /*parallel*/ false);
180 } 180 }
181 181
182 void scrub(CardTableModRefBS* ctbs, BitMap* card_bm) { 182 void scrub(CardTableModRefBS* ctbs, BitMap* card_bm) {
183 HeapWord* hr_bot = hr()->bottom(); 183 HeapWord* hr_bot = hr()->bottom();
184 int hr_first_card_index = ctbs->index_for(hr_bot); 184 size_t hr_first_card_index = ctbs->index_for(hr_bot);
185 bm()->set_intersection_at_offset(*card_bm, hr_first_card_index); 185 bm()->set_intersection_at_offset(*card_bm, hr_first_card_index);
186 #if PRT_COUNT_OCCUPIED 186 #if PRT_COUNT_OCCUPIED
187 recount_occupied(); 187 recount_occupied();
188 #endif 188 #endif
189 } 189 }