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

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:

*** 4571,4581 **** G1PPRL_SUM_ADDR_FORMAT("committed") G1PPRL_SUM_ADDR_FORMAT("reserved") G1PPRL_SUM_BYTE_FORMAT("region-size"), g1_committed.start(), g1_committed.end(), g1_reserved.start(), g1_reserved.end(), ! (size_t)HeapRegion::GrainBytes); _out->print_cr(G1PPRL_LINE_PREFIX); _out->print_cr(G1PPRL_LINE_PREFIX G1PPRL_TYPE_H_FORMAT G1PPRL_ADDR_BASE_H_FORMAT G1PPRL_BYTE_H_FORMAT --- 4571,4581 ---- G1PPRL_SUM_ADDR_FORMAT("committed") G1PPRL_SUM_ADDR_FORMAT("reserved") G1PPRL_SUM_BYTE_FORMAT("region-size"), g1_committed.start(), g1_committed.end(), g1_reserved.start(), g1_reserved.end(), ! HeapRegion::GrainBytes); _out->print_cr(G1PPRL_LINE_PREFIX); _out->print_cr(G1PPRL_LINE_PREFIX G1PPRL_TYPE_H_FORMAT G1PPRL_ADDR_BASE_H_FORMAT G1PPRL_BYTE_H_FORMAT
*** 4602,4612 **** size_t G1PrintRegionLivenessInfoClosure::get_hum_bytes(size_t* hum_bytes) { size_t bytes = 0; // The > 0 check is to deal with the prev and next live bytes which // could be 0. if (*hum_bytes > 0) { ! bytes = MIN2((size_t) HeapRegion::GrainBytes, *hum_bytes); *hum_bytes -= bytes; } return bytes; } --- 4602,4612 ---- size_t G1PrintRegionLivenessInfoClosure::get_hum_bytes(size_t* hum_bytes) { size_t bytes = 0; // The > 0 check is to deal with the prev and next live bytes which // could be 0. if (*hum_bytes > 0) { ! bytes = MIN2(HeapRegion::GrainBytes, *hum_bytes); *hum_bytes -= bytes; } return bytes; }