--- old/src/hotspot/share/gc/shared/genCollectedHeap.hpp 2018-04-27 15:29:53.350202584 +0200 +++ new/src/hotspot/share/gc/shared/genCollectedHeap.hpp 2018-04-27 15:29:53.106202593 +0200 @@ -500,10 +500,12 @@ void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) PRODUCT_RETURN; +#if INCLUDE_SERIALGC // For use by mark-sweep. As implemented, mark-sweep-compact is global // in an essential way: compaction is performed across generations, by // iterating over spaces. void prepare_for_compaction(); +#endif // Perform a full collection of the generations up to and including max_generation. // This is the low level interface used by the public versions of