mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8148733
: G1: Add log message to print the heap region size
Reviewed-by: sjohanss, david
This commit is contained in:
parent
a5e2b096bc
commit
0e9273e8a7
2 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue