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

Issue 9812022: Fix sending log messages from GPU child threads (Closed)

Created:
8 years, 9 months ago by Pawel Osciak
Modified:
8 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, Ami GONE FROM CHROMIUM
Visibility:
Public.

Description

Fix sending log messages from GPU child threads This fixes a problem with sending log messages from children threads of the GPU process. In GPU process the message goes through GpuProcessLogMessageHandler() and to ChildThread::Send(), but there it would fail on DCHECK(MessageLoop::current() == message_loop()), try to output another log message about it, and since the handler is overriden, it would go back to GpuProcessLogMessageHandler, and back again to ChildThread::Send() and thus recurse until eventually dying silently due to stack overflow. BUG= TEST=manual run of a GPU child thread Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133824

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix whitespace #

Patch Set 3 : Add braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M content/gpu/gpu_child_thread.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Pawel Osciak
8 years, 9 months ago (2012-03-21 22:30:38 UTC) #1
apatrick_chromium
https://chromiumcodereview.appspot.com/9812022/diff/1/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://chromiumcodereview.appspot.com/9812022/diff/1/content/gpu/gpu_child_thread.cc#newcode37 content/gpu/gpu_child_thread.cc:37: ChildProcess::current()->main_thread()->message_loop()) nit: we'd typically give this if-else braces since ...
8 years, 9 months ago (2012-03-21 22:38:17 UTC) #2
Pawel Osciak
On 2012/03/21 22:38:17, apatrick_chromium wrote: > https://chromiumcodereview.appspot.com/9812022/diff/1/content/gpu/gpu_child_thread.cc > File content/gpu/gpu_child_thread.cc (right): > > https://chromiumcodereview.appspot.com/9812022/diff/1/content/gpu/gpu_child_thread.cc#newcode37 > ...
8 years, 9 months ago (2012-03-24 01:02:03 UTC) #3
apatrick_chromium
lgtm
8 years, 9 months ago (2012-03-24 01:04:30 UTC) #4
Pawel Osciak
sievers@: ping
8 years, 8 months ago (2012-04-06 02:06:30 UTC) #5
Pawel Osciak
sievers@: ping
8 years, 8 months ago (2012-04-06 02:06:31 UTC) #6
no sievers
On 2012/04/06 02:06:31, posciak wrote: > sievers@: ping Oops, sorry. Yes, looks good assuming your ...
8 years, 8 months ago (2012-04-06 02:11:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9812022/2004
8 years, 8 months ago (2012-04-24 22:51:08 UTC) #8
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 00:42:32 UTC) #9
Change committed as 133824

Powered by Google App Engine
This is Rietveld 408576698