Chromium Code Reviews| Index: src/spaces.h |
| diff --git a/src/spaces.h b/src/spaces.h |
| index 3f8e395676649820cdd322ee16ae1196e2b9978e..482581de4c6ee7ce551f17ea016e340fd8f9982f 100644 |
| --- a/src/spaces.h |
| +++ b/src/spaces.h |
| @@ -1749,11 +1749,19 @@ class PagedSpace : public Space { |
| unswept_free_bytes_ += (p->area_size() - p->LiveBytes()); |
| } |
| + void DecrementUnsweptFreeBytes(int by) { |
| + unswept_free_bytes_ -= by; |
| + } |
| + |
| void DecreaseUnsweptFreeBytes(Page* p) { |
| ASSERT(ShouldBeSweptLazily(p)); |
| unswept_free_bytes_ -= (p->area_size() - p->LiveBytes()); |
| } |
| + void ResetUnsweptFreeBytes() { |
| + unswept_free_bytes_ = 0; |
| + } |
| + |
| bool AdvanceSweeper(intptr_t bytes_to_sweep); |
| // When parallel sweeper threads are active this function waits |
| @@ -1784,13 +1792,13 @@ class PagedSpace : public Space { |
| return area_size_; |
| } |
| - protected: |
| - FreeList* free_list() { return &free_list_; } |
| - |
| void AddToAccountingStats(intptr_t bytes) { |
|
Michael Starzinger
2013/02/28 14:49:53
Since this is no longer protected, let's move it u
Hannes Payer (out of office)
2013/02/28 15:07:15
Done.
|
| accounting_stats_.DeallocateBytes(bytes); |
| } |
| + protected: |
| + FreeList* free_list() { return &free_list_; } |
| + |
| int area_size_; |
| // Maximum capacity of this space. |