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

Issue 32283003: Fix crash with IPC_MESSAGE_LOG_ENABLED when running in single-process mode or in-process-gpu. The … (Closed)

Created:
7 years, 2 months ago by atreat
Modified:
7 years, 1 month ago
Reviewers:
brettw, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix crash with IPC_MESSAGE_LOG_ENABLED when running in single-process mode or in-process-gpu. The ipc_logging class is not thread safe so when when running in these modes the queued_logs_ were getting smashed. Besides, there is no reason to queue these logs when running all in the same process. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231374

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove the change to the DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M content/child/child_thread.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/child/child_thread.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
atreat
The queued logs for ipc_logging don't make sense for in process threads. This patch fixes ...
7 years, 2 months ago (2013-10-23 18:41:02 UTC) #1
Avi (use Gerrit)
I don't know enough about threading to comment. Will stamp if needed.
7 years, 2 months ago (2013-10-23 19:15:15 UTC) #2
atreat
On 2013/10/23 19:15:15, Avi wrote: > I don't know enough about threading to comment. Will ...
7 years, 2 months ago (2013-10-23 20:34:41 UTC) #3
Avi (use Gerrit)
Ask John.
7 years, 2 months ago (2013-10-23 20:49:43 UTC) #4
jam
https://codereview.chromium.org/32283003/diff/1/content/child/child_thread.cc File content/child/child_thread.cc (right): https://codereview.chromium.org/32283003/diff/1/content/child/child_thread.cc#newcode290 content/child/child_thread.cc:290: DCHECK(in_browser_process_ || base::MessageLoop::current() == message_loop()); why is this needed?
7 years, 2 months ago (2013-10-24 16:49:03 UTC) #5
atreat
On 2013/10/24 16:49:03, jam wrote: > https://codereview.chromium.org/32283003/diff/1/content/child/child_thread.cc > File content/child/child_thread.cc (right): > > https://codereview.chromium.org/32283003/diff/1/content/child/child_thread.cc#newcode290 > ...
7 years, 2 months ago (2013-10-24 16:56:36 UTC) #6
jam
On 2013/10/24 16:56:36, atreat wrote: > On 2013/10/24 16:49:03, jam wrote: > > https://codereview.chromium.org/32283003/diff/1/content/child/child_thread.cc > ...
7 years, 2 months ago (2013-10-24 20:34:51 UTC) #7
atreat
On 2013/10/24 20:34:51, jam wrote: > can you attach a callstack? channel_ is not thread ...
7 years, 1 month ago (2013-10-28 15:38:38 UTC) #8
jam
lgtm
7 years, 1 month ago (2013-10-28 16:47:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/32283003/80001
7 years, 1 month ago (2013-10-28 17:01:24 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 19:29:34 UTC) #11
Message was sent while issue was closed.
Change committed as 231374

Powered by Google App Engine
This is Rietveld 408576698