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

Unified Diff: Source/wtf/PartitionAllocTest.cpp

Issue 1155293007: Expose ReleaseFreeMemory to free up memory on memory pressure or idle cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing test calls. 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/PartitionAlloc.cpp ('k') | Source/wtf/Partitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/PartitionAllocTest.cpp
diff --git a/Source/wtf/PartitionAllocTest.cpp b/Source/wtf/PartitionAllocTest.cpp
index 32660794557d02daf49f5ca0b5c329fbf3e7ec74..53b5d4d5e449df98f30b013dd0dc98cad0d1277b 100644
--- a/Source/wtf/PartitionAllocTest.cpp
+++ b/Source/wtf/PartitionAllocTest.cpp
@@ -1494,7 +1494,7 @@ TEST(PartitionAllocTest, Purge)
EXPECT_EQ(WTF::kSystemPageSize, stats->freeableBytes);
EXPECT_EQ(WTF::kSystemPageSize, stats->residentBytes);
}
- partitionPurgeMemory(genericAllocator.root());
+ partitionPurgeMemoryGeneric(genericAllocator.root());
{
MockPartitionStatsDumper mockStatsDumperGeneric;
partitionDumpStatsGeneric(genericAllocator.root(), "mock_generic_allocator", &mockStatsDumperGeneric);
@@ -1508,7 +1508,7 @@ TEST(PartitionAllocTest, Purge)
}
// Calling purge again here is a good way of testing we didn't mess up the
// state of the free cache ring.
- partitionPurgeMemory(genericAllocator.root());
+ partitionPurgeMemoryGeneric(genericAllocator.root());
TestShutdown();
}
« no previous file with comments | « Source/wtf/PartitionAlloc.cpp ('k') | Source/wtf/Partitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698