Index: Source/bindings/core/v8/ScriptProfiler.cpp |
diff --git a/Source/bindings/core/v8/ScriptProfiler.cpp b/Source/bindings/core/v8/ScriptProfiler.cpp |
index 7db431217e51ba7cc18291a631040d1bee581414..ec70515af708c5475b2d6b490acb45fbd71d4fc7 100644 |
--- a/Source/bindings/core/v8/ScriptProfiler.cpp |
+++ b/Source/bindings/core/v8/ScriptProfiler.cpp |
@@ -305,8 +305,8 @@ void ScriptProfiler::visitNodeWrappers(WrappedNodeVisitor* visitor) |
ProfileNameIdleTimeMap* ScriptProfiler::currentProfileNameIdleTimeMap() |
{ |
- AtomicallyInitializedStatic(WTF::ThreadSpecific<ProfileNameIdleTimeMap>*, map = new WTF::ThreadSpecific<ProfileNameIdleTimeMap>); |
- return *map; |
+ AtomicallyInitializedStaticReference(WTF::ThreadSpecific<ProfileNameIdleTimeMap>, map, new WTF::ThreadSpecific<ProfileNameIdleTimeMap>); |
+ return map; |
} |
void ScriptProfiler::setIdle(bool isIdle) |