< prev index next > src/hotspot/share/gc/shenandoah/shenandoahGenerationType.hpp
Print this page
#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";
}
}
#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 >