< prev index next >

src/hotspot/share/gc/shared/genCollectedHeap.cpp

Print this page
@@ -50,10 +50,11 @@
  #include "gc/shared/locationPrinter.inline.hpp"
  #include "gc/shared/oopStorage.inline.hpp"
  #include "gc/shared/oopStorageSet.inline.hpp"
  #include "gc/shared/oopStorageParState.inline.hpp"
  #include "gc/shared/scavengableNMethods.hpp"
+ #include "gc/shared/slidingForwarding.hpp"
  #include "gc/shared/space.hpp"
  #include "gc/shared/strongRootsScope.hpp"
  #include "gc/shared/weakProcessor.hpp"
  #include "gc/shared/workgroup.hpp"
  #include "memory/iterator.hpp"

@@ -135,10 +136,12 @@
    old_rs = old_rs.first_part(_old_gen_spec->max_size());
    _old_gen = _old_gen_spec->init(old_rs, rem_set());
  
    GCInitLogger::print();
  
+   SlidingForwarding::initialize(_reserved, SpaceAlignment / HeapWordSize);
+ 
    return JNI_OK;
  }
  
  CardTableRS* GenCollectedHeap::create_rem_set(const MemRegion& reserved_region) {
    return new CardTableRS(reserved_region);
< prev index next >