< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahGenerationType.hpp

Print this page
*** 24,17 ***
  
  #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHGENERATIONTYPE_HPP
  #define SHARE_GC_SHENANDOAH_SHENANDOAHGENERATIONTYPE_HPP
  
  enum ShenandoahGenerationType {
!   NON_GEN           // non-generational
  };
  
  inline const char* shenandoah_generation_name(ShenandoahGenerationType mode) {
    switch (mode) {
      case NON_GEN:
        return "Non-Generational";
      default:
        ShouldNotReachHere();
        return "Unknown";
    }
  }
--- 24,26 ---
  
  #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHGENERATIONTYPE_HPP
  #define SHARE_GC_SHENANDOAH_SHENANDOAHGENERATIONTYPE_HPP
  
  enum ShenandoahGenerationType {
!     NON_GEN,         // non-generational
+     GLOBAL,          // generational: Global
+     YOUNG,           // generational: Young
+     OLD              // generational: Old
  };
  
  inline const char* shenandoah_generation_name(ShenandoahGenerationType mode) {
    switch (mode) {
      case NON_GEN:
        return "Non-Generational";
+     case GLOBAL:
+       return "Global";
+     case OLD:
+       return "Old";
+     case YOUNG:
+       return "Young";
      default:
        ShouldNotReachHere();
        return "Unknown";
    }
  }
< prev index next >