< prev index next >

src/share/vm/gc_implementation/g1/heapRegionType.cpp

Print this page




  50   }
  51   ShouldNotReachHere();
  52   // keep some compilers happy
  53   return NULL;
  54 }
  55 
  56 const char* HeapRegionType::get_short_str() const {
  57   hrt_assert_is_valid(_tag);
  58   switch (_tag) {
  59     case FreeTag:      return "F";
  60     case EdenTag:      return "E";
  61     case SurvTag:      return "S";
  62     case HumStartsTag: return "HS";
  63     case HumContTag:   return "HC";
  64     case OldTag:       return "O";
  65   }
  66   ShouldNotReachHere();
  67   // keep some compilers happy
  68   return NULL;
  69 }

















  50   }
  51   ShouldNotReachHere();
  52   // keep some compilers happy
  53   return NULL;
  54 }
  55 
  56 const char* HeapRegionType::get_short_str() const {
  57   hrt_assert_is_valid(_tag);
  58   switch (_tag) {
  59     case FreeTag:      return "F";
  60     case EdenTag:      return "E";
  61     case SurvTag:      return "S";
  62     case HumStartsTag: return "HS";
  63     case HumContTag:   return "HC";
  64     case OldTag:       return "O";
  65   }
  66   ShouldNotReachHere();
  67   // keep some compilers happy
  68   return NULL;
  69 }
  70 
  71 G1HeapRegionTraceType::Type HeapRegionType::get_trace_type() {
  72   hrt_assert_is_valid(_tag);
  73   switch (_tag) {
  74     case FreeTag:               return G1HeapRegionTraceType::Free;
  75     case EdenTag:               return G1HeapRegionTraceType::Eden;
  76     case SurvTag:               return G1HeapRegionTraceType::Survivor;
  77     case HumStartsTag:          return G1HeapRegionTraceType::StartsHumongous;
  78     case HumContTag:            return G1HeapRegionTraceType::ContinuesHumongous;
  79     case OldTag:                return G1HeapRegionTraceType::Old;
  80     default:
  81       ShouldNotReachHere();
  82       return G1HeapRegionTraceType::Free; // keep some compilers happy
  83   }
  84 }
< prev index next >