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

Unified Diff: runtime/vm/class_table.h

Issue 747463002: Fix allocation stats bug on ARM; add unit test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | runtime/vm/class_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.h
===================================================================
--- runtime/vm/class_table.h (revision 41855)
+++ runtime/vm/class_table.h (working copy)
@@ -60,6 +60,13 @@
old_size = old_count * instance_size;
new_size = new_count * instance_size;
}
+
+ void Verify() {
+ ASSERT(new_count >= 0);
+ ASSERT(new_size >= 0);
+ ASSERT(old_count >= 0);
+ ASSERT(old_size >= 0);
+ }
};
class ClassHeapStats {
@@ -107,6 +114,8 @@
// Recent old at start of last new GC (used to compute promoted_*).
intptr_t old_pre_new_gc_count_;
intptr_t old_pre_new_gc_size_;
+
+ void Verify();
};
« no previous file with comments | « no previous file | runtime/vm/class_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698