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

Side by Side Diff: src/heap.cc

Issue 8692002: Only sweep one page eagerly unless we are running out of space. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 6244 matching lines...) Expand 10 before | Expand all | Expand 10 after
6255 break; 6255 break;
6256 default: 6256 default:
6257 UNREACHABLE(); 6257 UNREACHABLE();
6258 } 6258 }
6259 PrintF(" "); 6259 PrintF(" ");
6260 6260
6261 PrintF("external=%d ", static_cast<int>(scopes_[Scope::EXTERNAL])); 6261 PrintF("external=%d ", static_cast<int>(scopes_[Scope::EXTERNAL]));
6262 PrintF("mark=%d ", static_cast<int>(scopes_[Scope::MC_MARK])); 6262 PrintF("mark=%d ", static_cast<int>(scopes_[Scope::MC_MARK]));
6263 PrintF("sweep=%d ", static_cast<int>(scopes_[Scope::MC_SWEEP])); 6263 PrintF("sweep=%d ", static_cast<int>(scopes_[Scope::MC_SWEEP]));
6264 PrintF("sweepns=%d ", static_cast<int>(scopes_[Scope::MC_SWEEP_NEWSPACE])); 6264 PrintF("sweepns=%d ", static_cast<int>(scopes_[Scope::MC_SWEEP_NEWSPACE]));
6265 PrintF("compact=%d ", static_cast<int>(scopes_[Scope::MC_COMPACT])); 6265 PrintF("evacuate=%d ", static_cast<int>(scopes_[Scope::MC_EVACUATE_PAGES]));
6266 PrintF("new_new=%d ",
6267 static_cast<int>(scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]));
6268 PrintF("root_new=%d ",
6269 static_cast<int>(scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]));
6270 PrintF("old_new=%d ",
6271 static_cast<int>(scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]));
6272 PrintF("compaction_ptrs=%d ",
6273 static_cast<int>(scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]));
6274 PrintF("intracompaction_ptrs=%d ", static_cast<int>(scopes_[
6275 Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]));
6276 PrintF("misc_compaction=%d ",
6277 static_cast<int>(scopes_[Scope::MC_UPDATE_MISC_POINTERS]));
6266 6278
6267 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", start_size_); 6279 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", start_size_);
6268 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", heap_->SizeOfObjects()); 6280 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", heap_->SizeOfObjects());
6269 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", 6281 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ",
6270 in_free_list_or_wasted_before_gc_); 6282 in_free_list_or_wasted_before_gc_);
6271 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", CountTotalHolesSize()); 6283 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", CountTotalHolesSize());
6272 6284
6273 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_); 6285 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_);
6274 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_); 6286 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_);
6275 6287
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6449 isolate_->heap()->store_buffer()->Compact(); 6461 isolate_->heap()->store_buffer()->Compact();
6450 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6462 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6451 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6463 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6452 next = chunk->next_chunk(); 6464 next = chunk->next_chunk();
6453 isolate_->memory_allocator()->Free(chunk); 6465 isolate_->memory_allocator()->Free(chunk);
6454 } 6466 }
6455 chunks_queued_for_free_ = NULL; 6467 chunks_queued_for_free_ = NULL;
6456 } 6468 }
6457 6469
6458 } } // namespace v8::internal 6470 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698