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

Unified Diff: runtime/vm/metrics.cc

Issue 503363005: - Add and enable concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/metrics.cc
===================================================================
--- runtime/vm/metrics.cc (revision 39573)
+++ runtime/vm/metrics.cc (working copy)
@@ -51,10 +51,14 @@
Metric::~Metric() {
- if (isolate_ == NULL) {
- DeregisterWithVM();
- } else {
- DeregisterWithIsolate();
+ // Only deregister metrics which had been registered. Metrics without a name
+ // are from shallow copy isolates.
+ if (name_ != NULL) {
+ if (isolate_ == NULL) {
+ DeregisterWithVM();
+ } else {
+ DeregisterWithIsolate();
+ }
}
}
« runtime/vm/heap.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698