DescriptionFix race in ShellConnectionRef
When a ShellConnectionRef is Cloned it may post a task
to the factory's thread to add a ref. This can race with
the ref-count going to zero and the factory being deleted.
This CL changes ShellConnectionRef to hold a WeakPtr
to the factory to avoid the race.
This means it's possible for a ShellConnectionRef to be
acquired without keeping the ShellClient alive (because
AddRef will never run), which is a problem. But it's
less of a problem than crashing, for now.
BUG=612332
R=ben@chromium.org
Committed: https://crrev.com/422c8bdec8d814af792916dbff086350a286c54f
Cr-Commit-Position: refs/heads/master@{#394049}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|