Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Unified Diff: runtime/vm/class_table.cc

Issue 584023004: Service isolate rework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/class_table.cc
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc
index 1077723522bc063ed439e391a8d2c6f68c92976c..ebddb8b27402be90807ff9e45db5b9e361b06450 100644
--- a/runtime/vm/class_table.cc
+++ b/runtime/vm/class_table.cc
@@ -175,6 +175,12 @@ void ClassTable::Print() {
String& name = String::Handle();
for (intptr_t i = 1; i < top_; i++) {
+ if (!HasValidClassAt(i)) {
+ continue;
+ }
+ if (i == kFreeListElement) {
+ continue;
+ }
cls = At(i);
if (cls.raw() != reinterpret_cast<RawClass*>(0)) {
name = cls.Name();

Powered by Google App Engine
This is Rietveld 408576698