< prev index next >

src/hotspot/share/gc/shared/generation.cpp

Print this page
rev 49911 : imported patch removeAllGCs

@@ -21,11 +21,10 @@
  * questions.
  *
  */
 
 #include "precompiled.hpp"
-#include "gc/serial/genMarkSweep.hpp"
 #include "gc/shared/blockOffsetTable.inline.hpp"
 #include "gc/shared/cardTableRS.hpp"
 #include "gc/shared/collectedHeap.inline.hpp"
 #include "gc/shared/gcLocker.hpp"
 #include "gc/shared/gcTimer.hpp"

@@ -301,10 +300,12 @@
 void Generation::safe_object_iterate(ObjectClosure* cl) {
   GenerationSafeObjIterateClosure blk(cl);
   space_iterate(&blk);
 }
 
+#if INCLUDE_SERIALGC
+
 void Generation::prepare_for_compaction(CompactPoint* cp) {
   // Generic implementation, can be specialized
   CompactibleSpace* space = first_compaction_space();
   while (space != NULL) {
     space->prepare_for_compaction(cp);

@@ -331,5 +332,7 @@
   while (sp != NULL) {
     sp->compact();
     sp = sp->next_compaction_space();
   }
 }
+
+#endif // INCLUDE_SERIALGC
< prev index next >