hotspot/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp
changeset 1406 e5e2b519fc11
parent 979 c9479f1e0a94
child 1412 2bb3fe3e00ea
equal deleted inserted replaced
1405:ce6e6fe90107 1406:e5e2b519fc11
   150 void PSOldGen::precompact() {
   150 void PSOldGen::precompact() {
   151   ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap();
   151   ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap();
   152   assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity");
   152   assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity");
   153 
   153 
   154   // Reset start array first.
   154   // Reset start array first.
   155   debug_only(if (!UseParallelOldGC || !VerifyParallelOldWithMarkSweep) {)
       
   156   start_array()->reset();
   155   start_array()->reset();
   157   debug_only(})
       
   158 
   156 
   159   object_mark_sweep()->precompact();
   157   object_mark_sweep()->precompact();
   160 
   158 
   161   // Now compact the young gen
   159   // Now compact the young gen
   162   heap->young_gen()->precompact();
   160   heap->young_gen()->precompact();