| Index: third_party/WebKit/Source/platform/heap/HeapPage.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
|
| index f199239a16b109d307e43c780aaec29ec9d3315a..3e29d69f5603e6571909f7c5b4f4f6a7b12f1936 100644
|
| --- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
|
| @@ -1140,7 +1140,7 @@ void NormalPage::sweep()
|
| #if !ENABLE(ASSERT) && !defined(LEAK_SANITIZER) && !defined(ADDRESS_SANITIZER)
|
| // Discarding pages increases page faults and may regress performance.
|
| // So we enable this only on low-RAM devices.
|
| - if (Heap::isLowEndDevice())
|
| + if (ProcessHeap::isLowEndDevice())
|
| discardPages(startOfGap + sizeof(FreeListEntry), headerAddress);
|
| #endif
|
| }
|
| @@ -1152,7 +1152,7 @@ void NormalPage::sweep()
|
| if (startOfGap != payloadEnd()) {
|
| pageArena->addToFreeList(startOfGap, payloadEnd() - startOfGap);
|
| #if !ENABLE(ASSERT) && !defined(LEAK_SANITIZER) && !defined(ADDRESS_SANITIZER)
|
| - if (Heap::isLowEndDevice())
|
| + if (ProcessHeap::isLowEndDevice())
|
| discardPages(startOfGap + sizeof(FreeListEntry), payloadEnd());
|
| #endif
|
| }
|
|
|