< prev index next > src/hotspot/share/gc/shenandoah/mode/shenandoahSATBMode.cpp
Print this page
* questions.
*
*/
#include "precompiled.hpp"
! #include "gc/shenandoah/heuristics/shenandoahAdaptiveHeuristics.hpp"
- #include "gc/shenandoah/heuristics/shenandoahAggressiveHeuristics.hpp"
- #include "gc/shenandoah/heuristics/shenandoahCompactHeuristics.hpp"
- #include "gc/shenandoah/heuristics/shenandoahStaticHeuristics.hpp"
#include "gc/shenandoah/mode/shenandoahSATBMode.hpp"
#include "logging/log.hpp"
#include "logging/logTag.hpp"
#include "runtime/globals_extension.hpp"
#include "runtime/java.hpp"
* questions.
*
*/
#include "precompiled.hpp"
! #include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
#include "gc/shenandoah/mode/shenandoahSATBMode.hpp"
#include "logging/log.hpp"
#include "logging/logTag.hpp"
#include "runtime/globals_extension.hpp"
#include "runtime/java.hpp"
SHENANDOAH_CHECK_FLAG_UNSET(ShenandoahIUBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahSATBBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahCASBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahCloneBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahStackWatermarkBarrier);
! }
-
- ShenandoahHeuristics* ShenandoahSATBMode::initialize_heuristics() const {
- if (ShenandoahGCHeuristics == nullptr) {
- vm_exit_during_initialization("Unknown -XX:ShenandoahGCHeuristics option (null)");
- }
- if (strcmp(ShenandoahGCHeuristics, "aggressive") == 0) {
- return new ShenandoahAggressiveHeuristics();
- } else if (strcmp(ShenandoahGCHeuristics, "static") == 0) {
- return new ShenandoahStaticHeuristics();
- } else if (strcmp(ShenandoahGCHeuristics, "adaptive") == 0) {
- return new ShenandoahAdaptiveHeuristics();
- } else if (strcmp(ShenandoahGCHeuristics, "compact") == 0) {
- return new ShenandoahCompactHeuristics();
- }
- vm_exit_during_initialization("Unknown -XX:ShenandoahGCHeuristics option");
- return nullptr;
}
SHENANDOAH_CHECK_FLAG_UNSET(ShenandoahIUBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahSATBBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahCASBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahCloneBarrier);
SHENANDOAH_CHECK_FLAG_SET(ShenandoahStackWatermarkBarrier);
! SHENANDOAH_CHECK_FLAG_UNSET(ShenandoahCardBarrier);
}
< prev index next >