| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index 2bfb1f251f0ecda12769bf689f94864b44563d71..b31aaf3998fd98a370b3a329dcfb992c12f9e112 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -1105,7 +1105,7 @@
|
| void PagedSpace::TearDown() {
|
| for (auto it = begin(); it != end();) {
|
| Page* page = *(it++); // Will be erased.
|
| - heap()->array_buffer_tracker()->FreeAll(page);
|
| + ArrayBufferTracker::FreeAll(page);
|
| heap()->memory_allocator()->Free<MemoryAllocator::kFull>(page);
|
| }
|
| anchor_.set_next_page(&anchor_);
|
| @@ -1593,8 +1593,6 @@
|
|
|
|
|
| bool NewSpace::AddFreshPage() {
|
| - if (heap()->ShouldDoScavengeForReducingExternalMemory()) return false;
|
| -
|
| Address top = allocation_info_.top();
|
| DCHECK(!Page::IsAtObjectStart(top));
|
| if (!to_space_.AdvancePage()) {
|
| @@ -1787,7 +1785,7 @@
|
| // Properly uncommit memory to keep the allocator counters in sync.
|
| if (is_committed()) {
|
| for (Page* p : *this) {
|
| - heap()->array_buffer_tracker()->FreeAll(p);
|
| + ArrayBufferTracker::FreeAll(p);
|
| }
|
| Uncommit();
|
| }
|
|
|