src/hotspot/share/gc/shenandoah/shenandoahTraversalMode.cpp
changeset 55594 66a748c4f3ff
parent 55587 4644b3155fce
child 58679 9c3209ff7550
equal deleted inserted replaced
55593:963924f1c891 55594:66a748c4f3ff
    21  *
    21  *
    22  */
    22  */
    23 
    23 
    24 #include "precompiled.hpp"
    24 #include "precompiled.hpp"
    25 #include "gc/shenandoah/shenandoahTraversalMode.hpp"
    25 #include "gc/shenandoah/shenandoahTraversalMode.hpp"
       
    26 #include "gc/shenandoah/heuristics/shenandoahTraversalAggressiveHeuristics.hpp"
    26 #include "gc/shenandoah/heuristics/shenandoahTraversalHeuristics.hpp"
    27 #include "gc/shenandoah/heuristics/shenandoahTraversalHeuristics.hpp"
    27 #include "logging/log.hpp"
    28 #include "logging/log.hpp"
    28 #include "logging/logTag.hpp"
    29 #include "logging/logTag.hpp"
    29 
    30 
    30 void ShenandoahTraversalMode::initialize_flags() const {
    31 void ShenandoahTraversalMode::initialize_flags() const {
    45 
    46 
    46 ShenandoahHeuristics* ShenandoahTraversalMode::initialize_heuristics() const {
    47 ShenandoahHeuristics* ShenandoahTraversalMode::initialize_heuristics() const {
    47   if (ShenandoahGCHeuristics != NULL) {
    48   if (ShenandoahGCHeuristics != NULL) {
    48     if (strcmp(ShenandoahGCHeuristics, "adaptive") == 0) {
    49     if (strcmp(ShenandoahGCHeuristics, "adaptive") == 0) {
    49       return new ShenandoahTraversalHeuristics();
    50       return new ShenandoahTraversalHeuristics();
       
    51     } else if (strcmp(ShenandoahGCHeuristics, "aggressive") == 0) {
       
    52       return new ShenandoahTraversalAggressiveHeuristics();
    50     } else {
    53     } else {
    51       vm_exit_during_initialization("Unknown -XX:ShenandoahGCHeuristics option");
    54       vm_exit_during_initialization("Unknown -XX:ShenandoahGCHeuristics option");
    52     }
    55     }
    53   }
    56   }
    54   ShouldNotReachHere();
    57   ShouldNotReachHere();