--- old/src/hotspot/share/gc/shared/generation.hpp 2018-04-27 15:31:23.714199437 +0200 +++ new/src/hotspot/share/gc/shared/generation.hpp 2018-04-27 15:31:23.462199445 +0200 @@ -400,6 +400,7 @@ GCStats* gc_stats() const { return _gc_stats; } virtual void update_gc_stats(Generation* current_generation, bool full) {} +#if INCLUDE_SERIALGC // Mark sweep support phase2 virtual void prepare_for_compaction(CompactPoint* cp); // Mark sweep support phase3 @@ -407,6 +408,7 @@ // Mark sweep support phase4 virtual void compact(); virtual void post_compact() { ShouldNotReachHere(); } +#endif // Support for CMS's rescan. In this general form we return a pointer // to an abstract object that can be used, based on specific previously