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

Unified Diff: third_party/WebKit/Source/platform/heap/CallbackStack.h

Issue 1750553002: Reduce weak callback stack reservation for non-main threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace 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 | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/CallbackStack.h
diff --git a/third_party/WebKit/Source/platform/heap/CallbackStack.h b/third_party/WebKit/Source/platform/heap/CallbackStack.h
index 3bc2800d6f1d998eb9569be22f018c786adfa6b2..2faad282273aeda929e3359538c2d7fe1ac1f0d8 100644
--- a/third_party/WebKit/Source/platform/heap/CallbackStack.h
+++ b/third_party/WebKit/Source/platform/heap/CallbackStack.h
@@ -37,7 +37,7 @@ public:
VisitorCallback m_callback;
};
- explicit CallbackStack(size_t blockSize = defaultBlockSize);
+ explicit CallbackStack(size_t blockSize = kDefaultBlockSize);
~CallbackStack();
void clear();
@@ -55,10 +55,9 @@ public:
#endif
static const size_t kMinimalBlockSize;
+ static const size_t kDefaultBlockSize = (1 << 13);
private:
- static const size_t defaultBlockSize = (1 << 13);
-
class Block {
USING_FAST_MALLOC(Block);
public:
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698