8019902: G1: Use the average heap size rather than the minimum heap size to calculate the region size

Reviewed-by: tonyp, tschatzl, sjohanss
This commit is contained in:
Bengt Rutisson 2013-08-30 07:31:47 +02:00
parent 728a40bcdc
commit 6d7626dba4
3 changed files with 13 additions and 12 deletions

View file

@ -361,7 +361,7 @@ class HeapRegion: public G1OffsetTableContigSpace {
// CardsPerRegion). All those fields are considered constant
// throughout the JVM's execution, therefore they should only be set
// up once during initialization time.
static void setup_heap_region_size(uintx min_heap_size);
static void setup_heap_region_size(size_t initial_heap_size, size_t max_heap_size);
enum ClaimValues {
InitialClaimValue = 0,