< prev index next >

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

Print this page
@@ -21,14 +21,11 @@
   * 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/heuristics/shenandoahHeuristics.hpp"
  #include "gc/shenandoah/mode/shenandoahIUMode.hpp"
  #include "logging/log.hpp"
  #include "logging/logTag.hpp"
  #include "runtime/globals_extension.hpp"
  #include "runtime/java.hpp"

@@ -58,23 +55,7 @@
    SHENANDOAH_CHECK_FLAG_UNSET(ShenandoahSATBBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahIUBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahCASBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahCloneBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahStackWatermarkBarrier);
- }
- 
- ShenandoahHeuristics* ShenandoahIUMode::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(ShenandoahCardBarrier);
  }
< prev index next >