src/hotspot/share/gc/parallel/psYoungGen.cpp
changeset 49982 9042ffe5b7fe
parent 49964 99e698e94cc7
child 54264 41af8d0546bc
equal deleted inserted replaced
49981:bd0a95bec96b 49982:9042ffe5b7fe
   728   eden_space()->object_iterate(blk);
   728   eden_space()->object_iterate(blk);
   729   from_space()->object_iterate(blk);
   729   from_space()->object_iterate(blk);
   730   to_space()->object_iterate(blk);
   730   to_space()->object_iterate(blk);
   731 }
   731 }
   732 
   732 
       
   733 #if INCLUDE_SERIALGC
       
   734 
   733 void PSYoungGen::precompact() {
   735 void PSYoungGen::precompact() {
   734   eden_mark_sweep()->precompact();
   736   eden_mark_sweep()->precompact();
   735   from_mark_sweep()->precompact();
   737   from_mark_sweep()->precompact();
   736   to_mark_sweep()->precompact();
   738   to_mark_sweep()->precompact();
   737 }
   739 }
   746   eden_mark_sweep()->compact(ZapUnusedHeapArea);
   748   eden_mark_sweep()->compact(ZapUnusedHeapArea);
   747   from_mark_sweep()->compact(ZapUnusedHeapArea);
   749   from_mark_sweep()->compact(ZapUnusedHeapArea);
   748   // Mark sweep stores preserved markOops in to space, don't disturb!
   750   // Mark sweep stores preserved markOops in to space, don't disturb!
   749   to_mark_sweep()->compact(false);
   751   to_mark_sweep()->compact(false);
   750 }
   752 }
       
   753 
       
   754 #endif // INCLUDE_SERIALGC
   751 
   755 
   752 void PSYoungGen::print() const { print_on(tty); }
   756 void PSYoungGen::print() const { print_on(tty); }
   753 void PSYoungGen::print_on(outputStream* st) const {
   757 void PSYoungGen::print_on(outputStream* st) const {
   754   st->print(" %-15s", "PSYoungGen");
   758   st->print(" %-15s", "PSYoungGen");
   755   st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
   759   st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",