src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp

changeset 1520
0e2d7ae2bc67
parent 1429
753cf9794df9
child 1580
e018e6884bd8
equal deleted inserted replaced
1519:5f932a151fd4 1520: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) {

mercurial