8148733: G1: Add log message to print the heap region size

Reviewed-by: sjohanss, david
This commit is contained in:
Bengt Rutisson 2016-02-02 12:12:17 +01:00
parent a5e2b096bc
commit 0e9273e8a7
2 changed files with 7 additions and 6 deletions

View file

@ -143,6 +143,7 @@ void HeapRegion::setup_heap_region_size(size_t initial_heap_size, size_t max_hea
// The cast to int is safe, given that we've bounded region_size by
// MIN_REGION_SIZE and MAX_REGION_SIZE.
GrainBytes = region_size;
log_info(gc, heap)("Heap region size: " SIZE_FORMAT "M", GrainBytes / M);
guarantee(GrainWords == 0, "we should only set it once");
GrainWords = GrainBytes >> LogHeapWordSize;