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

Unified Diff: src/heap.cc

Issue 460069: Changed recording of heap stats on OOM to store data directly in local (Closed)
Patch Set: Review fixes 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 | « src/heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 39f00d3b437874a528176f1f4cfcbc8db87b6367..4e4cd1c051e570621916663aa5a88cc342b41682 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -3274,19 +3274,21 @@ bool Heap::ConfigureHeapDefault() {
void Heap::RecordStats(HeapStats* stats) {
- stats->new_space_size = new_space_.Size();
- stats->new_space_capacity = new_space_.Capacity();
- stats->old_pointer_space_size = old_pointer_space_->Size();
- stats->old_pointer_space_capacity = old_pointer_space_->Capacity();
- stats->old_data_space_size = old_data_space_->Size();
- stats->old_data_space_capacity = old_data_space_->Capacity();
- stats->code_space_size = code_space_->Size();
- stats->code_space_capacity = code_space_->Capacity();
- stats->map_space_size = map_space_->Size();
- stats->map_space_capacity = map_space_->Capacity();
- stats->cell_space_size = cell_space_->Size();
- stats->cell_space_capacity = cell_space_->Capacity();
- stats->lo_space_size = lo_space_->Size();
+ *stats->start_marker = 0xDECADE00;
+ *stats->end_marker = 0xDECADE01;
+ *stats->new_space_size = new_space_.Size();
+ *stats->new_space_capacity = new_space_.Capacity();
+ *stats->old_pointer_space_size = old_pointer_space_->Size();
+ *stats->old_pointer_space_capacity = old_pointer_space_->Capacity();
+ *stats->old_data_space_size = old_data_space_->Size();
+ *stats->old_data_space_capacity = old_data_space_->Capacity();
+ *stats->code_space_size = code_space_->Size();
+ *stats->code_space_capacity = code_space_->Capacity();
+ *stats->map_space_size = map_space_->Size();
+ *stats->map_space_capacity = map_space_->Capacity();
+ *stats->cell_space_size = cell_space_->Size();
+ *stats->cell_space_capacity = cell_space_->Capacity();
+ *stats->lo_space_size = lo_space_->Size();
GlobalHandles::RecordStats(stats);
}
« no previous file with comments | « src/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698