mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7095194: G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t
Declare GrainBytes, GrainWords, and CardsPerRegion as size_t. Reviewed-by: jcoomes, tonyp, jmasa
This commit is contained in:
parent
a4523cfc7f
commit
6513930e7a
8 changed files with 31 additions and 38 deletions
|
@ -4573,7 +4573,7 @@ G1PrintRegionLivenessInfoClosure(outputStream* out, const char* phase_name)
|
|||
G1PPRL_SUM_BYTE_FORMAT("region-size"),
|
||||
g1_committed.start(), g1_committed.end(),
|
||||
g1_reserved.start(), g1_reserved.end(),
|
||||
(size_t)HeapRegion::GrainBytes);
|
||||
HeapRegion::GrainBytes);
|
||||
_out->print_cr(G1PPRL_LINE_PREFIX);
|
||||
_out->print_cr(G1PPRL_LINE_PREFIX
|
||||
G1PPRL_TYPE_H_FORMAT
|
||||
|
@ -4604,7 +4604,7 @@ size_t G1PrintRegionLivenessInfoClosure::get_hum_bytes(size_t* hum_bytes) {
|
|||
// 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);
|
||||
bytes = MIN2(HeapRegion::GrainBytes, *hum_bytes);
|
||||
*hum_bytes -= bytes;
|
||||
}
|
||||
return bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue