|
|
DescriptionMake WebMediaConstraitsPrivate ThreadSafeRefCounted
WebMediaConstraitsPrivate had a non-thread-safe ref count, but accessed
from multiple threads. E.g. UserMediaClientImpl::SelectVideoDeviceSourceSettings()
makes a reference of WebMediaConstraitsPrivate via WebUserMediaRequest::videoConstraints(),
and passes it to a CategorizedWorkerPool, then the reference is dropped on the
worker thread without any protection.
BUG=688072
Review-Url: https://codereview.chromium.org/2710423002
Cr-Commit-Position: refs/heads/master@{#453505}
Committed: https://chromium.googlesource.com/chromium/src/+/0e0765474bc7bf13cbdf778d06bbc3be5783f11e
Patch Set 1 #
Messages
Total messages: 22 (14 generated)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Make WebMediaConstraitsPrivate ThreadSafeRefCounted WebMediaConstraitsPrivate had a non-thread-safe ref count, but accessed from multiple threads. E.g. UserMediaClientImpl::SelectVideoDeviceSourceSettings() makes a reference of WebMediaConstraitsPrivate via WebUserMediaRequest::videoConstraints(), and passes it to a CategorizedWorkerPool. ========== to ========== Make WebMediaConstraitsPrivate ThreadSafeRefCounted WebMediaConstraitsPrivate had a non-thread-safe ref count, but accessed from multiple threads. E.g. UserMediaClientImpl::SelectVideoDeviceSourceSettings() makes a reference of WebMediaConstraitsPrivate via WebUserMediaRequest::videoConstraints(), and passes it to a CategorizedWorkerPool, then the reference is dropped on the worker thread without any protection. BUG=688072 ==========
tzik@chromium.org changed reviewers: + qiangchen@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
On 2017/02/24 08:03:37, tzik wrote: > PTAL Did you specify a wrong reviewer? I do not think I am an expert in ThreadSafeRefCount.
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/24 16:57:28, qiangchen wrote: > On 2017/02/24 08:03:37, tzik wrote: > > PTAL > > Did you specify a wrong reviewer? I do not think I am an expert in > ThreadSafeRefCount. I'll request a platform owner later, but before that, I'd request media experts to take a look to this to confirm the threading assumption here.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
tzik@chromium.org changed reviewers: + haraken@chromium.org
Adding haraken for owner review. PTAL.
LGTM
The CQ bit was checked by tzik@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 1, "attempt_start_ts": 1488249429663810, "parent_rev": "272eb7b955d8008142f9fd6615cea25161f684ac", "commit_rev": "0e0765474bc7bf13cbdf778d06bbc3be5783f11e"}
Message was sent while issue was closed.
Description was changed from ========== Make WebMediaConstraitsPrivate ThreadSafeRefCounted WebMediaConstraitsPrivate had a non-thread-safe ref count, but accessed from multiple threads. E.g. UserMediaClientImpl::SelectVideoDeviceSourceSettings() makes a reference of WebMediaConstraitsPrivate via WebUserMediaRequest::videoConstraints(), and passes it to a CategorizedWorkerPool, then the reference is dropped on the worker thread without any protection. BUG=688072 ========== to ========== Make WebMediaConstraitsPrivate ThreadSafeRefCounted WebMediaConstraitsPrivate had a non-thread-safe ref count, but accessed from multiple threads. E.g. UserMediaClientImpl::SelectVideoDeviceSourceSettings() makes a reference of WebMediaConstraitsPrivate via WebUserMediaRequest::videoConstraints(), and passes it to a CategorizedWorkerPool, then the reference is dropped on the worker thread without any protection. BUG=688072 Review-Url: https://codereview.chromium.org/2710423002 Cr-Commit-Position: refs/heads/master@{#453505} Committed: https://chromium.googlesource.com/chromium/src/+/0e0765474bc7bf13cbdf778d06bb... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/0e0765474bc7bf13cbdf778d06bb... |