Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp @ 1085:0e2d7ae2bc67
6898857: [Regression] -XX:NewRatio with -XX:+UseConcMarkSweepGC causes fatal error
Summary: Use CollectorPolicy information instead of MaxNewSize
Reviewed-by: ysr, jcoomes
author | jmasa |
---|---|
date | Tue, 10 Nov 2009 11:32:48 -0800 |
parents | 753cf9794df9 |
children | e018e6884bd8 |
comparison
equal
deleted
inserted
replaced
1084:5f932a151fd4 | 1085:0e2d7ae2bc67 |
---|---|
707 } | 707 } |
708 assert(_eden_chunk_array != NULL || _eden_chunk_capacity == 0, "Error"); | 708 assert(_eden_chunk_array != NULL || _eden_chunk_capacity == 0, "Error"); |
709 | 709 |
710 // Support for parallelizing survivor space rescan | 710 // Support for parallelizing survivor space rescan |
711 if (CMSParallelRemarkEnabled && CMSParallelSurvivorRemarkEnabled) { | 711 if (CMSParallelRemarkEnabled && CMSParallelSurvivorRemarkEnabled) { |
712 size_t max_plab_samples = MaxNewSize/((SurvivorRatio+2)*MinTLABSize); | 712 size_t max_plab_samples = cp->max_gen0_size()/ |
713 ((SurvivorRatio+2)*MinTLABSize); | |
713 _survivor_plab_array = NEW_C_HEAP_ARRAY(ChunkArray, ParallelGCThreads); | 714 _survivor_plab_array = NEW_C_HEAP_ARRAY(ChunkArray, ParallelGCThreads); |
714 _survivor_chunk_array = NEW_C_HEAP_ARRAY(HeapWord*, 2*max_plab_samples); | 715 _survivor_chunk_array = NEW_C_HEAP_ARRAY(HeapWord*, 2*max_plab_samples); |
715 _cursor = NEW_C_HEAP_ARRAY(size_t, ParallelGCThreads); | 716 _cursor = NEW_C_HEAP_ARRAY(size_t, ParallelGCThreads); |
716 if (_survivor_plab_array == NULL || _survivor_chunk_array == NULL | 717 if (_survivor_plab_array == NULL || _survivor_chunk_array == NULL |
717 || _cursor == NULL) { | 718 || _cursor == NULL) { |