# HG changeset patch # User ecaspole # Date 1439921064 14400 # Node ID c7756b9bd6bd5395f8035a2b756ad2622ad1f2a2 # Parent 8527712452de5fb4e718b48998a92291f827ea6d 8133349: CMS: Assert failed: Ctl pt invariant Summary: _survivor_chunk_array should be sized based on PLAB::min_size() not ThreadLocalAllocBuffer::min_size() Reviewed-by: tschatzl, jwilhelm diff -r 8527712452de -r c7756b9bd6bd hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp --- a/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp Tue Aug 18 17:32:10 2015 +0200 +++ b/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp Tue Aug 18 14:04:24 2015 -0400 @@ -620,7 +620,7 @@ // Support for parallelizing survivor space rescan if ((CMSParallelRemarkEnabled && CMSParallelSurvivorRemarkEnabled) || CMSParallelInitialMarkEnabled) { const size_t max_plab_samples = - _young_gen->max_survivor_size() / (ThreadLocalAllocBuffer::min_size() * HeapWordSize); + _young_gen->max_survivor_size() / (PLAB::min_size() * HeapWordSize); _survivor_plab_array = NEW_C_HEAP_ARRAY(ChunkArray, ParallelGCThreads, mtGC); _survivor_chunk_array = NEW_C_HEAP_ARRAY(HeapWord*, max_plab_samples, mtGC);