< prev index next > src/hotspot/share/gc/shenandoah/mode/shenandoahPassiveMode.cpp
Print this page
* 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"
#include "runtime/java.hpp"
void ShenandoahPassiveMode::initialize_flags() const {
// Do not allow concurrent cycles.
FLAG_SET_DEFAULT(ExplicitGCInvokesConcurrent, false);
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) {
vm_exit_during_initialization("Unknown -XX:ShenandoahGCHeuristics option (null)");
}
- return new ShenandoahPassiveHeuristics();
+ return new ShenandoahPassiveHeuristics(generation);
}
< prev index next >