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

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

Issue 2942233002: Add some support for promptly purging pages.
Patch Set: add MADV_FREE fallback Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PagePool.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/PagePool.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PagePool.cpp b/third_party/WebKit/Source/platform/heap/PagePool.cpp
index 4af09bca1f2a2890e6c3ca6a1c7a4e1694b6c0d8..e81b6141bc18fd13dd130f43af9795d807cdd8c5 100644
--- a/third_party/WebKit/Source/platform/heap/PagePool.cpp
+++ b/third_party/WebKit/Source/platform/heap/PagePool.cpp
@@ -28,11 +28,13 @@ PagePool::~PagePool() {
}
}
-void PagePool::Add(int index, PageMemory* memory) {
+void PagePool::Add(int index,
+ PageMemory* memory,
+ DecommitMemoryTiming decommit_hint) {
// When adding a page to the pool we decommit it to ensure it is unused
// while in the pool. This also allows the physical memory, backing the
// page, to be given back to the OS.
- memory->Decommit();
+ memory->Decommit(decommit_hint);
PoolEntry* entry = new PoolEntry(memory, pool_[index]);
pool_[index] = entry;
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PagePool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698