Chromium Code Reviews
Description[BlobAsync] Fixed race between IPC messages and IO task queue
The message responses to our blob start message are dispatched on the IO
thread but they're not added to the task queue. So a race can happen
where OnMemoryRequest is called before we store the consolidation in our
map.
I moved the StartBuildingBlob message - which signals the browser to
start requesting memory from the renderer - to our IO task which stores
our blob data. This eliminates the race case with a small sacrifice of
construction speed.
In the future, I'd like to be able to still dispatch both IPC messages
right away to keep the fast path, and correctly handle the race case.
BUG=612358
Committed: https://crrev.com/65a8fb95a8c71a7be8515f5e1c8125b04a477716
Cr-Commit-Position: refs/heads/master@{#394549}
Patch Set 1 #
Messages
Total messages: 9 (3 generated)
|
|||||||||||||||||||||||||||||||||||||