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

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

Issue 2614883006: Change PartitionAlloc to Chromium naming style. (Closed)
Patch Set: Rebase and fix some names. Created 3 years, 11 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/wtf/allocator/Partitions.cpp
diff --git a/third_party/WebKit/Source/wtf/allocator/Partitions.cpp b/third_party/WebKit/Source/wtf/allocator/Partitions.cpp
index 7b23382966265c537cac4ce1c0e1d886c7da5ffa..743b9006cdb0ce38dd5a643d83f24864e7eb2d70 100644
--- a/third_party/WebKit/Source/wtf/allocator/Partitions.cpp
+++ b/third_party/WebKit/Source/wtf/allocator/Partitions.cpp
@@ -53,7 +53,7 @@ void Partitions::initialize(
base::subtle::SpinLock::Guard guard(s_initializationLock);
if (!s_initialized) {
- base::partitionAllocGlobalInit(&Partitions::handleOutOfMemory);
+ base::PartitionAllocGlobalInit(&Partitions::handleOutOfMemory);
m_fastMallocAllocator.init();
m_bufferAllocator.init();
m_layoutAllocator.init();
@@ -80,11 +80,11 @@ void Partitions::decommitFreeableMemory() {
if (!s_initialized)
return;
- partitionPurgeMemoryGeneric(bufferPartition(),
+ PartitionPurgeMemoryGeneric(bufferPartition(),
base::PartitionPurgeDecommitEmptyPages);
- partitionPurgeMemoryGeneric(fastMallocPartition(),
+ PartitionPurgeMemoryGeneric(fastMallocPartition(),
base::PartitionPurgeDecommitEmptyPages);
- partitionPurgeMemory(layoutPartition(),
+ PartitionPurgeMemory(layoutPartition(),
base::PartitionPurgeDecommitEmptyPages);
}
@@ -112,11 +112,11 @@ void Partitions::dumpMemoryStats(
DCHECK(isMainThread());
decommitFreeableMemory();
- partitionDumpStatsGeneric(fastMallocPartition(), "fast_malloc", isLightDump,
+ PartitionDumpStatsGeneric(fastMallocPartition(), "fast_malloc", isLightDump,
partitionStatsDumper);
- partitionDumpStatsGeneric(bufferPartition(), "buffer", isLightDump,
+ PartitionDumpStatsGeneric(bufferPartition(), "buffer", isLightDump,
partitionStatsDumper);
- partitionDumpStats(layoutPartition(), "layout", isLightDump,
+ PartitionDumpStats(layoutPartition(), "layout", isLightDump,
partitionStatsDumper);
}
@@ -172,12 +172,12 @@ static NEVER_INLINE void partitionsOutOfMemoryUsingLessThan16M() {
size_t signature = 16 * 1024 * 1024 - 1;
base::debug::Alias(&signature);
DLOG(FATAL) << "ParitionAlloc: out of memory with < 16M usage (error:"
- << getAllocPageErrorCode() << ")";
+ << GetAllocPageErrorCode() << ")";
}
void Partitions::handleOutOfMemory() {
volatile size_t totalUsage = totalSizeOfCommittedPages();
- uint32_t allocPageErrorCode = getAllocPageErrorCode();
+ uint32_t allocPageErrorCode = GetAllocPageErrorCode();
base::debug::Alias(&allocPageErrorCode);
if (totalUsage >= 2UL * 1024 * 1024 * 1024)

Powered by Google App Engine
This is Rietveld 408576698