Chromium Code Reviews| Index: src/spaces.cc |
| =================================================================== |
| --- src/spaces.cc (revision 8270) |
| +++ src/spaces.cc (working copy) |
| @@ -728,14 +728,6 @@ |
| } |
| -void PagedSpace::SetAllocationInfo(Address top, Address limit) { |
| - Free(allocation_info_.top, allocation_info_.limit - allocation_info_.top); |
| - allocation_info_.top = top; |
| - allocation_info_.limit = limit; |
| - ASSERT(allocation_info_.VerifyPagedAllocation()); |
| -} |
| - |
| - |
| bool PagedSpace::Expand() { |
| ASSERT(max_capacity_ % Page::kObjectAreaSize == 0); |
| ASSERT(Capacity() % Page::kObjectAreaSize == 0); |
| @@ -1057,6 +1049,7 @@ |
| // Next page should be valid. |
| CHECK(!page->is_anchor()); |
| current = page->body(); |
| + continue; |
|
Vyacheslav Egorov (Chromium)
2011/06/14 10:59:09
I do not think this is necessary.
Erik Corry
2011/06/14 18:51:21
It made a bug go away for me.
If the last object
Lasse Reichstein
2011/06/15 06:56:27
It should be there.
There is nothing preventing to
|
| } |
| // The allocation pointer should not be in the middle of an object. |
| CHECK(!page->ContainsLimit(top()) || current < top()); |