Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Issue 2781443004: Convert NaClIPCAdapter::RewrittenMessage ownership management from shared to unique (Closed)

Created:
3 years, 9 months ago by tzik
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert NaClIPCAdapter::RewrittenMessage ownership management from shared to unique NaClIPCAdapter::RewrittenMessage was a non-thread-safe ref count and is accessed from multiple threads. Though it's used safely behind a lock, it confuses an upcoming threading assertion in RefCounted. This CL removes its ref count, and has NaClIPCAdapter handle it in std::unique_ptr as C++11 STL container can hold non-copyable values and the ref count is no longer needed. BUG=688072 Review-Url: https://codereview.chromium.org/2781443004 Cr-Commit-Position: refs/heads/master@{#467000} Committed: https://chromium.googlesource.com/chromium/src/+/1920c68e77540a5a35e52fba0860f1b8a6262e57

Patch Set 1 #

Patch Set 2 : s/scoped_refptr/std::unique_ptr/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -22 lines) Patch
M components/nacl/loader/nacl_ipc_adapter.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 9 chunks +17 lines, -20 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
tzik
PTAL
3 years, 9 months ago (2017-03-28 09:08:18 UTC) #7
tzik
Ping. Any concern or opinion to this?
3 years, 8 months ago (2017-04-11 12:00:26 UTC) #11
tzik
+dschuff. Could you take a look to this?
3 years, 8 months ago (2017-04-24 06:04:34 UTC) #13
Derek Schuff
I think this looks ok. +bbudge in case I missed something.
3 years, 8 months ago (2017-04-24 21:54:00 UTC) #15
bbudge
lgtm Nice cleanup!
3 years, 8 months ago (2017-04-24 22:18:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781443004/20001
3 years, 8 months ago (2017-04-25 04:05:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/419407)
3 years, 8 months ago (2017-04-25 04:12:30 UTC) #20
Derek Schuff
lgtm
3 years, 8 months ago (2017-04-25 15:37:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781443004/20001
3 years, 8 months ago (2017-04-25 15:37:51 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 15:42:34 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1920c68e77540a5a35e52fba0860...

Powered by Google App Engine
This is Rietveld 408576698