comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp @ 6010:720b6a76dd9d

7157073: G1: type change size_t -> uint for region counts / indexes Summary: Change the type of fields / variables / etc. that represent region counts and indeces from size_t to uint. Reviewed-by: iveresov, brutisso, jmasa, jwilhelm
author tonyp
date Wed, 18 Apr 2012 07:21:15 -0400
parents 65a8ff39a6da
children 7994a5a35fcf d2a62e0f25eb
comparison
equal deleted inserted replaced
6009:dde53abda3d6 6010:720b6a76dd9d
327 static void cleanup(); 327 static void cleanup();
328 static void par_cleanup(); 328 static void par_cleanup();
329 329
330 // Declare the heap size (in # of regions) to the HeapRegionRemSet(s). 330 // Declare the heap size (in # of regions) to the HeapRegionRemSet(s).
331 // (Uses it to initialize from_card_cache). 331 // (Uses it to initialize from_card_cache).
332 static void init_heap(size_t max_regions) { 332 static void init_heap(uint max_regions) {
333 OtherRegionsTable::init_from_card_cache(max_regions); 333 OtherRegionsTable::init_from_card_cache((size_t) max_regions);
334 } 334 }
335 335
336 // Declares that only regions i s.t. 0 <= i < new_n_regs are in use. 336 // Declares that only regions i s.t. 0 <= i < new_n_regs are in use.
337 static void shrink_heap(size_t new_n_regs) { 337 static void shrink_heap(uint new_n_regs) {
338 OtherRegionsTable::shrink_from_card_cache(new_n_regs); 338 OtherRegionsTable::shrink_from_card_cache((size_t) new_n_regs);
339 } 339 }
340 340
341 #ifndef PRODUCT 341 #ifndef PRODUCT
342 static void print_from_card_cache() { 342 static void print_from_card_cache() {
343 OtherRegionsTable::print_from_card_cache(); 343 OtherRegionsTable::print_from_card_cache();