< prev index next >
src/hotspot/share/gc/g1/g1EvacFailure.cpp
Print this page
@@ -31,10 +31,11 @@
#include "gc/g1/g1HeapVerifier.hpp"
#include "gc/g1/g1OopClosures.inline.hpp"
#include "gc/g1/g1_globals.hpp"
#include "gc/g1/heapRegion.hpp"
#include "gc/g1/heapRegionRemSet.hpp"
+#include "gc/shared/fill.hpp"
#include "gc/shared/preservedMarks.inline.hpp"
#include "oops/access.inline.hpp"
#include "oops/compressedOops.inline.hpp"
#include "oops/oop.inline.hpp"
@@ -160,17 +161,17 @@
return;
}
size_t gap_size = pointer_delta(end, start);
MemRegion mr(start, gap_size);
- if (gap_size >= CollectedHeap::min_fill_size()) {
- CollectedHeap::fill_with_objects(start, gap_size);
+ if (gap_size >= Fill::min_size()) {
+ Fill::range(start, gap_size);
HeapWord* end_first_obj = start + ((oop)start)->size();
_hr->cross_threshold(start, end_first_obj);
- // Fill_with_objects() may have created multiple (i.e. two)
- // objects, as the max_fill_size() is half a region.
+ // Fill::range() may have created multiple (i.e. two)
+ // objects, as the Fill::max_size() is half a region.
// After updating the BOT for the first object, also update the
// BOT for the second object to make the BOT complete.
if (end_first_obj != end) {
_hr->cross_threshold(end_first_obj, end);
#ifdef ASSERT
< prev index next >