comparison src/share/vm/gc_implementation/g1/heapRegion.hpp @ 3980:8229bd737950

7075646: G1: fix inconsistencies in the monitoring data Summary: Fixed a few inconsistencies in the monitoring data, in particular when reported from jstat. Reviewed-by: jmasa, brutisso, johnc
author tonyp
date Fri, 23 Sep 2011 16:07:49 -0400
parents 4dfb2df418f2
children 65a8ff39a6da
comparison
equal deleted inserted replaced
3979:4dfb2df418f2 3980:8229bd737950
354 // I'm declaring them as ints. I'm not anticipating heap region 354 // I'm declaring them as ints. I'm not anticipating heap region
355 // sizes to reach anywhere near 2g, so using an int here is safe. 355 // sizes to reach anywhere near 2g, so using an int here is safe.
356 static int GrainBytes; 356 static int GrainBytes;
357 static int GrainWords; 357 static int GrainWords;
358 static int CardsPerRegion; 358 static int CardsPerRegion;
359
360 static size_t align_up_to_region_byte_size(size_t sz) {
361 return (sz + (size_t) GrainBytes - 1) &
362 ~((1 << (size_t) LogOfHRGrainBytes) - 1);
363 }
359 364
360 // It sets up the heap region size (GrainBytes / GrainWords), as 365 // It sets up the heap region size (GrainBytes / GrainWords), as
361 // well as other related fields that are based on the heap region 366 // well as other related fields that are based on the heap region
362 // size (LogOfHRGrainBytes / LogOfHRGrainWords / 367 // size (LogOfHRGrainBytes / LogOfHRGrainWords /
363 // CardsPerRegion). All those fields are considered constant 368 // CardsPerRegion). All those fields are considered constant