Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapPage.cpp

Issue 2130683002: [Experiment] purge-and-suspend Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b7da90ae531826a4df862d5d38dc523e66d1271c..67900c103c27db88c1396694949aa7cc7b43d5af 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
@@ -1201,10 +1201,7 @@ void NormalPage::sweep()
if (startOfGap != headerAddress) {
pageArena->addToFreeList(startOfGap, headerAddress - startOfGap);
#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 (ProcessHeap::isLowEndDevice())
- discardPages(startOfGap + sizeof(FreeListEntry), headerAddress);
+ discardPages(startOfGap + sizeof(FreeListEntry), headerAddress);
sof 2016/07/07 09:35:19 Why drop the check for low-end devices?
tasak 2016/07/08 03:56:45 To reduce resident_set_bytes, pss, or private_dirt
sof 2016/07/08 07:14:29 That would be better; what's here now will serious
tasak 2016/07/19 08:22:51 I think, I need, Oilpan::discardUnusedPages or som
haraken 2016/07/19 20:20:22 This makes sense. Currently discardPages() is cal
#endif
}
header->unmark();
@@ -1215,8 +1212,7 @@ void NormalPage::sweep()
if (startOfGap != payloadEnd()) {
pageArena->addToFreeList(startOfGap, payloadEnd() - startOfGap);
#if !ENABLE(ASSERT) && !defined(LEAK_SANITIZER) && !defined(ADDRESS_SANITIZER)
- if (ProcessHeap::isLowEndDevice())
- discardPages(startOfGap + sizeof(FreeListEntry), payloadEnd());
+ discardPages(startOfGap + sizeof(FreeListEntry), payloadEnd());
#endif
}

Powered by Google App Engine
This is Rietveld 408576698