|
Cheaper thread-safe atomic initialization of static references.
Introduce AtomicallyInitializedStaticReference(Type, name, initializer)
for creating static singletons in a thread-safe manner. Reduce overhead
compared to the previous AtomicallyInitializedStatic() by adding a
double-checked locking scheme around the initialization.
Adopt its use across Blink.
R=jochen,kinuko,haraken,jyasskin
BUG= 447370
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188774
Total comments: 7
Total comments: 2
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+172 lines, -146 lines) |
Patch |
|
M |
Source/bindings/core/v8/Dictionary.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/ScriptProfiler.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/V8Initializer.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DOMArrayBuffer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/DOMArrayBufferDeallocationObserver.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/DOMArrayBufferDeallocationObserver.cpp
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/events/EventTarget.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/fetch/CrossOriginAccessControl.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/fetch/FetchUtils.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/page/NetworkStateNotifier.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/timing/MemoryInfo.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/timing/Performance.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/workers/WorkerThread.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBDatabase.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/webdatabase/Database.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/webdatabase/DatabaseTracker.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/webdatabase/QuotaTracker.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/blob/BlobRegistry.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/platform/graphics/DeferredImageDecoderTest.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/platform/graphics/ImageDecodingStore.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/graphics/ImageDecodingStore.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/platform/graphics/ImageDecodingStoreTest.cpp
|
View
|
|
7 chunks |
+39 lines, -39 lines |
0 comments
|
Download
|
|
M |
Source/platform/graphics/ImageFrameGenerator.cpp
|
View
|
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/platform/graphics/ImageFrameGeneratorTest.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/platform/heap/Handle.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/heap/Heap.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/platform/heap/HeapTest.cpp
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/platform/heap/ThreadState.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/heap/ThreadState.cpp
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/platform/heap/Visitor.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/image-decoders/ImageDecoder.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/web/WebImageCache.cpp
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/web/WebKit.cpp
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/wtf/ArrayBuffer.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/wtf/ArrayBufferContents.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/wtf/Atomics.h
|
View
|
|
4 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/wtf/CryptographicallyRandomNumber.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/wtf/HashTable.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/wtf/Threading.h
|
View
|
1
2
3
|
1 chunk |
+16 lines, -5 lines |
7 comments
|
Download
|
|
M |
Source/wtf/text/TextEncoding.cpp
|
View
|
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/wtf/unicode/icu/CollatorICU.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 27 (4 generated)
|