1. mWritten is written at  on the audio thread without decoder monitor held. 2. mWritten is read at  on the state machine thread with decoder monitor held.  https://hg.mozilla.org/mozilla-central/file/e7e69cc8c07b/dom/media/AudioSink.cpp#l217  https://hg.mozilla.org/mozilla-central/file/e7e69cc8c07b/dom/media/AudioSink.cpp#l119
Created attachment 8631935 [details] [diff] [review] 1181913_fix_mWritten_data_race_v1.patch Make mWritten an Atomic<int64_t>.
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8631935 - Flags: review?(kinetik)
Attachment #8631935 - Flags: review?(kinetik) → review+
Thanks for the review!
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox42: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.