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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecICU.cpp

Issue 2623273007: Fast path for ThreadSpecific for main thread on TLS-slow platforms (Closed)
Patch Set: [WIP] Fast path for currentThread() for main thread on TLS-slow platforms 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/text/TextCodecICU.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp b/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp
index 37c7d13eabb52756fd54b699a712651f283a4e5c..ea91e9347d35e9665975cff556daec9ce891b5dd 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecICU.cpp
@@ -48,7 +48,7 @@ ICUConverterWrapper::~ICUConverterWrapper() {
}
static UConverter*& cachedConverterICU() {
- return wtfThreadData().cachedConverterICU().converter;
+ return WTFThreadData::current().cachedConverterICU().converter;
}
std::unique_ptr<TextCodec> TextCodecICU::create(const TextEncoding& encoding,

Powered by Google App Engine
This is Rietveld 408576698