< prev index next >

src/hotspot/share/gc/shenandoah/mode/shenandoahSATBMode.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/shenandoahSATBMode.hpp"
  #include "logging/log.hpp"
  #include "logging/logTag.hpp"
  #include "runtime/globals_extension.hpp"
  #include "runtime/java.hpp"

@@ -49,22 +46,5 @@
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahCASBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahCloneBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahNMethodBarrier);
    SHENANDOAH_CHECK_FLAG_SET(ShenandoahStackWatermarkBarrier);
  }
- 
- ShenandoahHeuristics* ShenandoahSATBMode::initialize_heuristics() const {
-   if (ShenandoahGCHeuristics == NULL) {
-     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 NULL;
- }
< prev index next >