Chromium Code Reviews| Index: src/spaces.h |
| =================================================================== |
| --- src/spaces.h (revision 8902) |
| +++ src/spaces.h (working copy) |
| @@ -1434,6 +1434,7 @@ |
| void SetPagesToSweep(Page* first, Page* last) { |
| first_unswept_page_ = first; |
| last_unswept_page_ = last; |
| + int unswept_pages = 0; |
| Page* p = first; |
| do { |
| @@ -1441,7 +1442,12 @@ |
| // page. We have to set this flag on the pages to indicate this. |
| p->SetFlag(MemoryChunk::WAS_SWEPT_CONSERVATIVELY); |
| p = p->next_page(); |
| + unswept_pages++; |
| } while (p != last); |
| + |
| + if (FLAG_trace_gc) { |
|
Vyacheslav Egorov (Chromium)
2011/08/11 15:11:34
I think it should be under verbose flag.
I prefer
Erik Corry
2011/08/11 16:09:08
Done.
|
| + PrintF("Postponing sweep for %d pages\n", unswept_pages); |
| + } |
| } |
| bool AdvanceSweeper(intptr_t bytes_to_sweep); |