|
Disallow cross-thread Persistent<> read access.
A Persistent<> reference is belongs to the thread that created it,
read and write access must only be performed by that thread.
Debug verification have been in place for some time to verify that Persistent<>
updates only happen on its creation thread, and that the updated heap pointer
resides on that thread's heap. Extend the debug checks to also apply to read
access, checking that no other thread accesses the Persistent<>.
This requires converting a handful of Persistent<>s to CrossThreadPersistent<>s.
R=haraken
BUG= 693988
Review-Url: https://codereview.chromium.org/2702243003
Cr-Commit-Position: refs/heads/master@{#451753}
Committed: https://chromium.googlesource.com/chromium/src/+/2d8378bf293f5a0a0dbec1f5c2436fe7eaa51d3b
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+96 lines, -36 lines) |
Patch |
|
M |
third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/testing/DummyPageHolder.h
|
View
|
1
2
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h
|
View
|
1
2
|
4 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThread.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/ConvolverNode.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h
|
View
|
1
2
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/OscillatorNode.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/PannerNode.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h
|
View
|
1
2
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/Persistent.h
|
View
|
|
2 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
|
View
|
1
2
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.h
|
View
|
1
2
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 17 (12 generated)
|