< prev index next >

src/hotspot/share/gc/parallel/psMarkSweep.cpp

Print this page

        

@@ -35,10 +35,11 @@
 #include "gc/parallel/psMarkSweepDecorator.hpp"
 #include "gc/parallel/psOldGen.hpp"
 #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"
 #include "gc/shared/gcLocker.hpp"
 #include "gc/shared/gcTimer.hpp"

@@ -447,14 +448,14 @@
   MutableSpace* const old_space = old_gen->object_space();
   HeapWord* const unused_start = old_space->top();
   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
   // eden top.  (Need to set end because reset_after_change() mangles the region
   // from end to virtual_space->high() in debug builds).
< prev index next >