Revision: 3426 Author: [email protected] Date: Fri Dec 4 06:35:33 2009 Log: Fixed operator precedence bug in heap stat recording.
Review URL: http://codereview.chromium.org/465055 http://code.google.com/p/v8/source/detail?r=3426 Modified: /branches/bleeding_edge/src/global-handles.cc ======================================= --- /branches/bleeding_edge/src/global-handles.cc Fri Dec 4 02:18:30 2009 +++ /branches/bleeding_edge/src/global-handles.cc Fri Dec 4 06:35:33 2009 @@ -436,15 +436,15 @@ *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; } } } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
