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

Unified Diff: src/spaces.cc

Issue 7621014: Fix the thresholds so that the heap does not grow uncontrollably. This fixes (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 4 months 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
« src/heap.cc ('K') | « src/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
===================================================================
--- src/spaces.cc (revision 8902)
+++ src/spaces.cc (working copy)
@@ -1930,6 +1930,15 @@
SetTop(NULL, NULL);
// Stop lazy sweeping for the space.
+ if (FLAG_trace_gc && first_unswept_page_ != NULL) {
Vyacheslav Egorov (Chromium) 2011/08/12 09:11:51 _verbose
Erik Corry 2011/08/12 09:21:48 Actually this happens rarely and if it happens it
+ int pages = 0;
+ Page* p = last_unswept_page_;
+ do {
+ pages++;
+ p = p->next_page();
+ } while (p != last_unswept_page_);
+ PrintF("Abandoned %d unswept pages\n", pages);
+ }
first_unswept_page_ = last_unswept_page_ = Page::FromAddress(NULL);
// Clear the free list before a full GC---it will be rebuilt afterward.
« src/heap.cc ('K') | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698