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

Unified Diff: src/global-handles.cc

Issue 465055: Fixed operator precedence bug in heap stat recording. (Closed)
Patch Set: Created 11 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.cc
diff --git a/src/global-handles.cc b/src/global-handles.cc
index f3b2b0c50cf100db90e3690ea7f4c9a43b32f67d..1a0c982936f7b45e2fd305a1cee75b8e09171c82 100644
--- a/src/global-handles.cc
+++ b/src/global-handles.cc
@@ -436,15 +436,15 @@ void GlobalHandles::RecordStats(HeapStats* stats) {
*stats->near_death_global_handle_count = 0;
*stats->destroyed_global_handle_count = 0;
for (Node* current = head_; current != NULL; current = current->next()) {
- *stats->global_handle_count++;
+ *stats->global_handle_count += 1;
if (current->state_ == Node::WEAK) {
- *stats->weak_global_handle_count++;
+ *stats->weak_global_handle_count += 1;
} else if (current->state_ == Node::PENDING) {
- *stats->pending_global_handle_count++;
+ *stats->pending_global_handle_count += 1;
} else if (current->state_ == Node::NEAR_DEATH) {
- *stats->near_death_global_handle_count++;
+ *stats->near_death_global_handle_count += 1;
} else if (current->state_ == Node::DESTROYED) {
- *stats->destroyed_global_handle_count++;
+ *stats->destroyed_global_handle_count += 1;
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698