Print this page
rev 2722 : 7095194: G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t
Summary: Declare GrainBytes, GrainWords, and CardsPerRegion as size_t.
Reviewed-by:

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp
          +++ new/src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp
↓ open down ↓ 387 lines elided ↑ open up ↑
 388  388  
 389  389    // In both kinds of iteration, heap offset of first card of current
 390  390    // region.
 391  391    size_t _cur_region_card_offset;
 392  392    // Card offset within cur region.
 393  393    size_t _cur_region_cur_card;
 394  394  
 395  395    // Coarse table iteration fields:
 396  396  
 397  397    // Current region index;
 398      -  int _coarse_cur_region_index;
 399      -  int _coarse_cur_region_cur_card;
      398 +  int    _coarse_cur_region_index;
      399 +  size_t _coarse_cur_region_cur_card;
 400  400  
 401  401    bool coarse_has_next(size_t& card_index);
 402  402  
 403  403    // Fine table iteration fields:
 404  404  
 405  405    // Index of bucket-list we're working on.
 406  406    int _fine_array_index;
 407  407    // Per Region Table we're doing within current bucket list.
 408  408    PosParPRT* _fine_cur_prt;
 409  409  
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX