Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 13060:8f07aa079343
8016309: assert(eden_size > 0 && survivor_size > 0) failed: just checking
7057939: jmap shows MaxNewSize=4GB when Java is using parallel collector
Summary: Major cleanup of the collectorpolicy classes
Reviewed-by: tschatzl, jcoomes
author | jwilhelm |
---|---|
date | Fri, 01 Nov 2013 17:09:38 +0100 |
parents | 190899198332 |
children | 28674af341ac |
comparison
equal
deleted
inserted
replaced
13059:46d7652b223c | 13060:8f07aa079343 |
---|---|
170 // Now make sure that we don't go over or under our limits. | 170 // Now make sure that we don't go over or under our limits. |
171 if (region_size < MIN_REGION_SIZE) { | 171 if (region_size < MIN_REGION_SIZE) { |
172 region_size = MIN_REGION_SIZE; | 172 region_size = MIN_REGION_SIZE; |
173 } else if (region_size > MAX_REGION_SIZE) { | 173 } else if (region_size > MAX_REGION_SIZE) { |
174 region_size = MAX_REGION_SIZE; | 174 region_size = MAX_REGION_SIZE; |
175 } | |
176 | |
177 if (region_size != G1HeapRegionSize) { | |
178 // Update the flag to make sure that PrintFlagsFinal logs the correct value | |
179 FLAG_SET_ERGO(uintx, G1HeapRegionSize, region_size); | |
180 } | 175 } |
181 | 176 |
182 // And recalculate the log. | 177 // And recalculate the log. |
183 region_size_log = log2_long((jlong) region_size); | 178 region_size_log = log2_long((jlong) region_size); |
184 | 179 |