Index: Source/core/timing/MemoryInfo.cpp |
diff --git a/Source/core/timing/MemoryInfo.cpp b/Source/core/timing/MemoryInfo.cpp |
index 26e957b51b77fa170ab78d3388b267b2623ff28c..d5466ee33fa0f79995d904e942063074d994c33c 100644 |
--- a/Source/core/timing/MemoryInfo.cpp |
+++ b/Source/core/timing/MemoryInfo.cpp |
@@ -58,8 +58,8 @@ public: |
static HeapSizeCache& forCurrentThread() |
{ |
- AtomicallyInitializedStatic(ThreadSpecific<HeapSizeCache>*, heapSizeCache = new ThreadSpecific<HeapSizeCache>); |
- return **heapSizeCache; |
+ AtomicallyInitializedStaticReference(ThreadSpecific<HeapSizeCache>, heapSizeCache, new ThreadSpecific<HeapSizeCache>); |
+ return *heapSizeCache; |
} |
private: |