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

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

Issue 1741833002: Reduce ephemeron stack size reservation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const-ify Created 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | 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/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 11ba827defd2b3fc2e17946415db6ae83599b19e..62e4f91db267be1281a3fb97dca1db2cade1a3ff 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -110,7 +110,8 @@ void Heap::init()
s_markingStack = new CallbackStack();
s_postMarkingCallbackStack = new CallbackStack();
s_globalWeakCallbackStack = new CallbackStack();
- s_ephemeronStack = new CallbackStack();
+ // Use smallest supported block size for ephemerons.
+ s_ephemeronStack = new CallbackStack(CallbackStack::kMinimalBlockSize);
s_heapDoesNotContainCache = new HeapDoesNotContainCache();
s_freePagePool = new FreePagePool();
s_orphanedPagePool = new OrphanedPagePool();
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698