Index: runtime/vm/class_table.cc |
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc |
index 8cb9fa192a50850752d0ab7c706c4aa1eadfcf4e..9432a1beeeca0f7e8c84c3fc73ea41bd68379715 100644 |
--- a/runtime/vm/class_table.cc |
+++ b/runtime/vm/class_table.cc |
@@ -35,6 +35,7 @@ ClassTable::ClassTable() |
table_[i] = vm_class_table->At(i); |
} |
table_[kFreeListElement] = vm_class_table->At(kFreeListElement); |
+ table_[kForwardingCorpse] = vm_class_table->At(kForwardingCorpse); |
table_[kDynamicCid] = vm_class_table->At(kDynamicCid); |
table_[kVoidCid] = vm_class_table->At(kVoidCid); |
class_heap_stats_table_ = reinterpret_cast<ClassHeapStats*>( |
@@ -218,9 +219,6 @@ void ClassTable::Print() { |
if (!HasValidClassAt(i)) { |
continue; |
} |
- if (i == kFreeListElement) { |
- continue; |
- } |
cls = At(i); |
if (cls.raw() != reinterpret_cast<RawClass*>(0)) { |
name = cls.Name(); |
@@ -395,7 +393,10 @@ ClassHeapStats* ClassTable::PreliminaryStatsAt(intptr_t cid) { |
ClassHeapStats* ClassTable::StatsWithUpdatedSize(intptr_t cid) { |
- if (!HasValidClassAt(cid) || (cid == kFreeListElement) || (cid == kSmiCid)) { |
+ if (!HasValidClassAt(cid) || |
+ (cid == kFreeListElement) || |
+ (cid == kForwardingCorpse) || |
+ (cid == kSmiCid)) { |
return NULL; |
} |
Class& cls = Class::Handle(At(cid)); |