comparison src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 3986:65a8ff39a6da

7095194: G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t Summary: Declare GrainBytes, GrainWords, and CardsPerRegion as size_t. Reviewed-by: jcoomes, tonyp, jmasa
author johnc
date Wed, 05 Oct 2011 08:44:10 -0700
parents 4dfb2df418f2
children 074f0252cc13
comparison
equal deleted inserted replaced
3985:c63b928b212b 3986:65a8ff39a6da
4571 G1PPRL_SUM_ADDR_FORMAT("committed") 4571 G1PPRL_SUM_ADDR_FORMAT("committed")
4572 G1PPRL_SUM_ADDR_FORMAT("reserved") 4572 G1PPRL_SUM_ADDR_FORMAT("reserved")
4573 G1PPRL_SUM_BYTE_FORMAT("region-size"), 4573 G1PPRL_SUM_BYTE_FORMAT("region-size"),
4574 g1_committed.start(), g1_committed.end(), 4574 g1_committed.start(), g1_committed.end(),
4575 g1_reserved.start(), g1_reserved.end(), 4575 g1_reserved.start(), g1_reserved.end(),
4576 (size_t)HeapRegion::GrainBytes); 4576 HeapRegion::GrainBytes);
4577 _out->print_cr(G1PPRL_LINE_PREFIX); 4577 _out->print_cr(G1PPRL_LINE_PREFIX);
4578 _out->print_cr(G1PPRL_LINE_PREFIX 4578 _out->print_cr(G1PPRL_LINE_PREFIX
4579 G1PPRL_TYPE_H_FORMAT 4579 G1PPRL_TYPE_H_FORMAT
4580 G1PPRL_ADDR_BASE_H_FORMAT 4580 G1PPRL_ADDR_BASE_H_FORMAT
4581 G1PPRL_BYTE_H_FORMAT 4581 G1PPRL_BYTE_H_FORMAT
4602 size_t G1PrintRegionLivenessInfoClosure::get_hum_bytes(size_t* hum_bytes) { 4602 size_t G1PrintRegionLivenessInfoClosure::get_hum_bytes(size_t* hum_bytes) {
4603 size_t bytes = 0; 4603 size_t bytes = 0;
4604 // The > 0 check is to deal with the prev and next live bytes which 4604 // The > 0 check is to deal with the prev and next live bytes which
4605 // could be 0. 4605 // could be 0.
4606 if (*hum_bytes > 0) { 4606 if (*hum_bytes > 0) {
4607 bytes = MIN2((size_t) HeapRegion::GrainBytes, *hum_bytes); 4607 bytes = MIN2(HeapRegion::GrainBytes, *hum_bytes);
4608 *hum_bytes -= bytes; 4608 *hum_bytes -= bytes;
4609 } 4609 }
4610 return bytes; 4610 return bytes;
4611 } 4611 }
4612 4612