mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6898857: [Regression] -XX:NewRatio with -XX:+UseConcMarkSweepGC causes fatal error
Use CollectorPolicy information instead of MaxNewSize Reviewed-by: ysr, jcoomes
This commit is contained in:
parent
f473d94b9c
commit
bedf908436
1 changed files with 2 additions and 1 deletions
|
@ -709,7 +709,8 @@ CMSCollector::CMSCollector(ConcurrentMarkSweepGeneration* cmsGen,
|
|||
|
||||
// Support for parallelizing survivor space rescan
|
||||
if (CMSParallelRemarkEnabled && CMSParallelSurvivorRemarkEnabled) {
|
||||
size_t max_plab_samples = MaxNewSize/((SurvivorRatio+2)*MinTLABSize);
|
||||
size_t max_plab_samples = cp->max_gen0_size()/
|
||||
((SurvivorRatio+2)*MinTLABSize);
|
||||
_survivor_plab_array = NEW_C_HEAP_ARRAY(ChunkArray, ParallelGCThreads);
|
||||
_survivor_chunk_array = NEW_C_HEAP_ARRAY(HeapWord*, 2*max_plab_samples);
|
||||
_cursor = NEW_C_HEAP_ARRAY(size_t, ParallelGCThreads);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue