--- old/src/hotspot/share/gc/shared/generation.cpp 2018-04-27 15:29:55.210202520 +0200 +++ new/src/hotspot/share/gc/shared/generation.cpp 2018-04-27 15:29:54.970202528 +0200 @@ -23,7 +23,6 @@ */ #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" @@ -303,6 +302,8 @@ space_iterate(&blk); } +#if INCLUDE_SERIALGC + void Generation::prepare_for_compaction(CompactPoint* cp) { // Generic implementation, can be specialized CompactibleSpace* space = first_compaction_space(); @@ -333,3 +334,5 @@ sp = sp->next_compaction_space(); } } + +#endif // INCLUDE_SERIALGC