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

Unified Diff: third_party/WebKit/Source/wtf/MainThread.cpp

Issue 1363653006: Reserve capacity for static strings HashMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the deduced string length (exclude NULL terminator) Created 5 years, 3 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/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/MainThread.cpp
diff --git a/third_party/WebKit/Source/wtf/MainThread.cpp b/third_party/WebKit/Source/wtf/MainThread.cpp
index ec1876a405d6d12a748e8ddfdc4828a15ce67d4c..3856dbbc73345ec0bde69e56bdafb37cb99d8243 100644
--- a/third_party/WebKit/Source/wtf/MainThread.cpp
+++ b/third_party/WebKit/Source/wtf/MainThread.cpp
@@ -35,6 +35,7 @@
#include "wtf/Functional.h"
#include "wtf/Threading.h"
#include "wtf/text/AtomicString.h"
+#include "wtf/text/StringStatics.h"
namespace WTF {
@@ -52,6 +53,7 @@ void initializeMainThread(void (*function)(MainThreadFunction, void*))
mainThreadIdentifier = currentThread();
AtomicString::init();
+ StringStatics::init();
}
namespace internal {
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698