Chromium Code Reviews| 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. |