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

Unified Diff: third_party/WebKit/Source/platform/wtf/allocator/Partitions.cpp

Issue 2935443002: Decommit unused system pages when invoking WTF::DecommitSystemPages(). (Closed)
Patch Set: 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 | « no previous file | 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/wtf/allocator/Partitions.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/allocator/Partitions.cpp b/third_party/WebKit/Source/platform/wtf/allocator/Partitions.cpp
index 9a8ea36d4de2de432e8c6f0245a61b6904d00e72..b96cc6e8a005290b0454c61cd11a3dd12e4bb188 100644
--- a/third_party/WebKit/Source/platform/wtf/allocator/Partitions.cpp
+++ b/third_party/WebKit/Source/platform/wtf/allocator/Partitions.cpp
@@ -70,13 +70,17 @@ void Partitions::DecommitFreeableMemory() {
return;
PartitionPurgeMemoryGeneric(ArrayBufferPartition(),
- base::PartitionPurgeDecommitEmptyPages);
+ base::PartitionPurgeDecommitEmptyPages |
+ base::PartitionPurgeDiscardUnusedSystemPages);
PartitionPurgeMemoryGeneric(BufferPartition(),
- base::PartitionPurgeDecommitEmptyPages);
+ base::PartitionPurgeDecommitEmptyPages |
+ base::PartitionPurgeDiscardUnusedSystemPages);
PartitionPurgeMemoryGeneric(FastMallocPartition(),
- base::PartitionPurgeDecommitEmptyPages);
+ base::PartitionPurgeDecommitEmptyPages |
+ base::PartitionPurgeDiscardUnusedSystemPages);
PartitionPurgeMemory(LayoutPartition(),
- base::PartitionPurgeDecommitEmptyPages);
+ base::PartitionPurgeDecommitEmptyPages |
+ base::PartitionPurgeDiscardUnusedSystemPages);
}
void Partitions::ReportMemoryUsageHistogram() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698