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

Unified Diff: Source/wtf/Partitions.cpp

Issue 1190173003: PartitionAlloc: API changes to support new partitionPurgeMemoryGeneric() mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review feedback. Created 5 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 | « Source/wtf/PartitionAllocTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Partitions.cpp
diff --git a/Source/wtf/Partitions.cpp b/Source/wtf/Partitions.cpp
index c8f6e7500d803eea15b326e87bbd67075f7f1111..e1c9510dd565d0feb00d29a0876620701f7c3fb4 100644
--- a/Source/wtf/Partitions.cpp
+++ b/Source/wtf/Partitions.cpp
@@ -76,10 +76,10 @@ void Partitions::decommitFreeableMemory()
{
ASSERT(isMainThread());
- partitionPurgeMemoryGeneric(bufferPartition());
- partitionPurgeMemoryGeneric(fastMallocPartition());
- partitionPurgeMemory(objectModelPartition());
- partitionPurgeMemory(layoutPartition());
+ partitionPurgeMemoryGeneric(bufferPartition(), PartitionPurgeDecommitEmptyPages);
+ partitionPurgeMemoryGeneric(fastMallocPartition(), PartitionPurgeDecommitEmptyPages);
+ partitionPurgeMemory(objectModelPartition(), PartitionPurgeDecommitEmptyPages);
+ partitionPurgeMemory(layoutPartition(), PartitionPurgeDecommitEmptyPages);
}
void Partitions::reportMemoryUsageHistogram()
« no previous file with comments | « Source/wtf/PartitionAllocTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698