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

Unified Diff: runtime/vm/tags.cc

Issue 973553005: Fix memory leak in CPU Profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « runtime/vm/tags.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/tags.cc
diff --git a/runtime/vm/tags.cc b/runtime/vm/tags.cc
index 21e1d5adf2c35cb040e1028d1292e0572979a06f..0b8e75e98c879b04dc3e5a0a5ba5dd5cccd78443 100644
--- a/runtime/vm/tags.cc
+++ b/runtime/vm/tags.cc
@@ -33,11 +33,12 @@ const char* VMTag::TagName(uword tag) {
bool VMTag::IsNativeEntryTag(uword tag) {
- if (tag == 0) {
+ if ((tag == kRootTagId) || (tag == kTruncatedTagId)) {
return false;
}
ASSERT(tag != kInvalidTagId);
ASSERT(tag != kNumVMTags);
+ ASSERT(tag != kLastTagId);
return (tag > kNumVMTags) && !IsRuntimeEntryTag(tag);
}
« no previous file with comments | « runtime/vm/tags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698