| Index: src/global-handles.cc
|
| ===================================================================
|
| --- src/global-handles.cc (revision 3413)
|
| +++ src/global-handles.cc (working copy)
|
| @@ -420,21 +420,21 @@
|
| GlobalHandles::Node* GlobalHandles::first_deallocated_ = NULL;
|
|
|
| void GlobalHandles::RecordStats(HeapStats* stats) {
|
| - stats->global_handle_count = 0;
|
| - stats->weak_global_handle_count = 0;
|
| - stats->pending_global_handle_count = 0;
|
| - stats->near_death_global_handle_count = 0;
|
| - stats->destroyed_global_handle_count = 0;
|
| + *stats->global_handle_count = 0;
|
| + *stats->weak_global_handle_count = 0;
|
| + *stats->pending_global_handle_count = 0;
|
| + *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;
|
| }
|
| }
|
| }
|
|
|