< prev index next >

src/hotspot/share/gc/g1/g1CollectedHeap.cpp

Print this page
*** 80,10 ***
--- 80,11 ---
  #include "gc/shared/generationSpec.hpp"
  #include "gc/shared/isGCActiveMark.hpp"
  #include "gc/shared/locationPrinter.inline.hpp"
  #include "gc/shared/oopStorageParState.hpp"
  #include "gc/shared/preservedMarks.inline.hpp"
+ #include "gc/shared/slidingForwarding.hpp"
  #include "gc/shared/suspendibleThreadSet.hpp"
  #include "gc/shared/referenceProcessor.inline.hpp"
  #include "gc/shared/taskTerminator.hpp"
  #include "gc/shared/taskqueue.inline.hpp"
  #include "gc/shared/tlab_globals.hpp"

*** 1772,10 ***
--- 1773,12 ---
  
    _regions_failed_evacuation = NEW_C_HEAP_ARRAY(volatile bool, max_regions(), mtGC);
  
    G1InitLogger::print();
  
+   SlidingForwarding::initialize(heap_rs.region(), HeapRegion::GrainWords);
+ 
    return JNI_OK;
  }
  
  void G1CollectedHeap::stop() {
    // Stop all concurrent threads. We do this to make sure these threads
< prev index next >