--- old/src/hotspot/share/gc/parallel/psMarkSweep.cpp 2018-10-18 14:45:41.645045956 +0200 +++ new/src/hotspot/share/gc/parallel/psMarkSweep.cpp 2018-10-18 14:45:41.323032131 +0200 @@ -37,6 +37,7 @@ #include "gc/parallel/psScavenge.hpp" #include "gc/parallel/psYoungGen.hpp" #include "gc/serial/markSweep.hpp" +#include "gc/shared/fill.hpp" #include "gc/shared/gcCause.hpp" #include "gc/shared/gcHeapSummary.hpp" #include "gc/shared/gcId.hpp" @@ -449,10 +450,10 @@ size_t const unused_words = pointer_delta(old_space->end(), unused_start); if (unused_words > 0) { - if (unused_words < CollectedHeap::min_fill_size()) { + if (unused_words < Fill::min_size()) { return false; // If the old gen cannot be filled, must give up. } - CollectedHeap::fill_with_objects(unused_start, unused_words); + Fill::range(unused_start, unused_words); } // Take the live data from eden and set both top and end in the old gen to