Add/move some locking in audio code
Categories
(Core :: Audio/Video, defect, P3)
Tracking
()
People
(Reporter: jesup, Assigned: jesup)
References
(Blocks 1 open bug)
Details
(Keywords: csectype-race, sec-moderate, Whiteboard: [post-critsmash-triage][adv-main100+r])
Attachments
(1 file, 2 obsolete files)
There are some issues with the locking in AudioStream.h and AudioSink.cpp. In a few cases locking is missing, and in some others the locking is done in the wrong place/too late/not covering some items that should be locked, from what clang thread-safety static analysis tells me. (See blocked bug)
GUARDED_BY/etc annotations used to find these will land later, with support for thread-safety.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
This makes it clear that it's safe to access it from any thread.
Depends on D137182
Comment 5•2 years ago
|
||
Comment on attachment 9261107 [details]
Bug 1747178 - Make AudioStream::mOutChannel const. r?alwu
Revision D137183 was moved to bug 1752345. Setting attachment 9261107 [details] to obsolete.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
dom/media Audio thread-safety cleanup r=padenot
https://hg.mozilla.org/integration/autoland/rev/7ac87c123f76ca0e6e507be6bfddb187a313fec4
https://hg.mozilla.org/mozilla-central/rev/7ac87c123f76
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•