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

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

Issue 2683373002: Remove a redundant template from PagePool (Closed)
Patch Set: temp Created 3 years, 10 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/platform/heap/HeapPage.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
index 3b48ca8fa9793beacc6257de2ed1cec77e4059ed..a05ffa8f558ce00326bf5120578b6b85152c3b16 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
@@ -598,7 +598,7 @@ void NormalPageArena::takeFreelistSnapshot(const String& dumpName) {
void NormalPageArena::allocatePage() {
getThreadState()->shouldFlushHeapDoesNotContainCache();
PageMemory* pageMemory =
- getThreadState()->heap().getFreePagePool()->takeFreePage(arenaIndex());
+ getThreadState()->heap().getFreePagePool()->take(arenaIndex());
if (!pageMemory) {
// Allocate a memory region for blinkPagesPerRegion pages that
@@ -623,8 +623,7 @@ void NormalPageArena::allocatePage() {
RELEASE_ASSERT(result);
pageMemory = memory;
} else {
- getThreadState()->heap().getFreePagePool()->addFreePage(arenaIndex(),
- memory);
+ getThreadState()->heap().getFreePagePool()->add(arenaIndex(), memory);
}
}
}
@@ -650,7 +649,7 @@ void NormalPageArena::freePage(NormalPage* page) {
PageMemory* memory = page->storage();
page->~NormalPage();
- getThreadState()->heap().getFreePagePool()->addFreePage(arenaIndex(), memory);
+ getThreadState()->heap().getFreePagePool()->add(arenaIndex(), memory);
}
bool NormalPageArena::coalesce() {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/PagePool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698