Chromium Code Reviews
DescriptionFix thread safety issues with //components/upload_list.
The uploads_ vector can be accessed simultaneously from multiple threads,
which can lead to heap corruption. This change ensures access to uploads_
only on the creator task runner. Updates occur by currying the new data
vector in a Closure across threads.
BUG=597384
Committed: https://crrev.com/6221751958a5f073b9557cfb89ba7a4197a5369d
Cr-Commit-Position: refs/heads/master@{#383495}
Patch Set 1 : #Patch Set 2 : #Patch Set 3 : Add race condition test #
Total comments: 9
Patch Set 4 : Address comments #
Messages
Total messages: 19 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||