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

Unified Diff: Source/platform/heap/Handle.h

Issue 794223003: Cheaper thread-safe atomic initialization of static references. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add type check for initial value Created 5 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: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index 20660c3ddccec99af0a8d5763a1f91cfb4a6ac41..056eebf5d69b8559dafda1e44cf7fa0af0fba7a2 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -169,7 +169,7 @@ private:
// passed between threads.
class GlobalPersistents {
public:
- static PersistentNode* roots() { return ThreadState::globalRoots(); }
+ static PersistentNode* roots() { return &ThreadState::globalRoots(); }
class Lock {
public:

Powered by Google App Engine
This is Rietveld 408576698