< prev index next >

src/hotspot/share/gc/shenandoah/mode/shenandoahPassiveMode.cpp

Print this page
@@ -21,15 +21,15 @@
   * questions.
   *
   */
  
  #include "precompiled.hpp"
+ #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
  #include "gc/shenandoah/heuristics/shenandoahPassiveHeuristics.hpp"
  #include "gc/shenandoah/mode/shenandoahPassiveMode.hpp"
  #include "logging/log.hpp"
  #include "logging/logTag.hpp"
- #include "runtime/globals_extension.hpp"
  
  void ShenandoahPassiveMode::initialize_flags() const {
    // Do not allow concurrent cycles.
    FLAG_SET_DEFAULT(ExplicitGCInvokesConcurrent, false);
    FLAG_SET_DEFAULT(ShenandoahImplicitGCInvokesConcurrent, false);

@@ -52,12 +52,12 @@
    SHENANDOAH_ERGO_DISABLE_FLAG(ShenandoahStackWatermarkBarrier);
  
    // Final configuration checks
    // No barriers are required to run.
  }
- ShenandoahHeuristics* ShenandoahPassiveMode::initialize_heuristics() const {
+ ShenandoahHeuristics* ShenandoahPassiveMode::initialize_heuristics(ShenandoahGeneration* generation) const {
    if (ShenandoahGCHeuristics != NULL) {
-     return new ShenandoahPassiveHeuristics();
+     return new ShenandoahPassiveHeuristics(generation);
    }
    ShouldNotReachHere();
    return NULL;
  }
< prev index next >