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

Issue 149238: Change the lifetime of the WebKit thread to be a subset of the IO thread's li... (Closed)

Created:
11 years, 5 months ago by jorlow
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Simplify the WebKit thread model. It's now created/destroyed on the UI thread (before/after the IO thread is started/stopped). The WebKit thread is created lazily as needed (while on the IO thread).TEST=noneBUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20109

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 12

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 12

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : '' #

Total comments: 6

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -133 lines) Patch
M chrome/browser/chrome_thread.h View 7 8 9 10 11 12 13 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/chrome_thread.cc View 7 8 9 10 11 12 13 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +6 lines, -16 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -27 lines 0 comments Download
M chrome/browser/in_process_webkit/webkit_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -33 lines 0 comments Download
M chrome/browser/in_process_webkit/webkit_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +21 lines, -37 lines 0 comments Download
M chrome/browser/in_process_webkit/webkit_thread_unittest.cc View 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -10 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 8 9 10 11 12 13 3 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jorlow
I think this is ready for review.
11 years, 5 months ago (2009-07-07 02:25:37 UTC) #1
darin (slow to review)
http://codereview.chromium.org/149238/diff/1039/44 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/1039/44#newcode22 Line 22: // We absolutely cannot be deleted on the ...
11 years, 5 months ago (2009-07-07 06:06:00 UTC) #2
jorlow
Will update the code in the morning. http://codereview.chromium.org/149238/diff/1039/44 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/1039/44#newcode22 Line 22: // ...
11 years, 5 months ago (2009-07-07 08:40:14 UTC) #3
jorlow
Ooops...forgot one thing. http://codereview.chromium.org/149238/diff/1039/44 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/1039/44#newcode30 Line 30: return; // Leaking is better ...
11 years, 5 months ago (2009-07-07 08:46:52 UTC) #4
darin (slow to review)
http://codereview.chromium.org/149238/diff/1039/45 File chrome/browser/in_process_webkit/webkit_thread.h (right): http://codereview.chromium.org/149238/diff/1039/45#newcode40 Line 40: static bool IsOnIOThread() { On 2009/07/07 08:40:15, Jeremy ...
11 years, 5 months ago (2009-07-07 17:32:38 UTC) #5
jam
http://codereview.chromium.org/149238/diff/1039/44 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/1039/44#newcode30 Line 30: return; // Leaking is better than crashing. On ...
11 years, 5 months ago (2009-07-07 18:21:59 UTC) #6
jorlow
This is getting really frustrating. I'm going in circles here. I had simpler "production" logic ...
11 years, 5 months ago (2009-07-07 18:29:46 UTC) #7
jorlow
Ready for another review. I think all comments have been addressed.
11 years, 5 months ago (2009-07-07 21:58:51 UTC) #8
jam
http://codereview.chromium.org/149238/diff/101/1060 File chrome/browser/chrome_thread.cc (right): http://codereview.chromium.org/149238/diff/101/1060#newcode60 Line 60: return == message_loop; ? http://codereview.chromium.org/149238/diff/101/1054 File chrome/browser/in_process_webkit/webkit_thread.cc (right): ...
11 years, 5 months ago (2009-07-07 22:14:40 UTC) #9
jorlow
Just uploaded a new version. http://codereview.chromium.org/149238/diff/101/1060 File chrome/browser/chrome_thread.cc (right): http://codereview.chromium.org/149238/diff/101/1060#newcode60 Line 60: return == message_loop; ...
11 years, 5 months ago (2009-07-07 22:31:02 UTC) #10
jam
lgtm with these two nits http://codereview.chromium.org/149238/diff/101/1054 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/101/1054#newcode17 Line 17: : single_process_(CommandLine::ForCurrentProcess()->HasSwitch( On ...
11 years, 5 months ago (2009-07-07 22:43:52 UTC) #11
jorlow
Done Darin, can you take a look. http://codereview.chromium.org/149238/diff/101/1054 File chrome/browser/in_process_webkit/webkit_thread.cc (right): http://codereview.chromium.org/149238/diff/101/1054#newcode17 Line 17: : ...
11 years, 5 months ago (2009-07-07 23:36:37 UTC) #12
darin (slow to review)
LGTM http://codereview.chromium.org/149238/diff/130/1104 File chrome/browser/chrome_thread.cc (right): http://codereview.chromium.org/149238/diff/130/1104#newcode25 Line 25: NULL, // WebKit nit: WEBKIT http://codereview.chromium.org/149238/diff/130/1105 File ...
11 years, 5 months ago (2009-07-07 23:43:03 UTC) #13
jorlow
Done...will commit soon. http://codereview.chromium.org/149238/diff/130/1104 File chrome/browser/chrome_thread.cc (right): http://codereview.chromium.org/149238/diff/130/1104#newcode25 Line 25: NULL, // WebKit On 2009/07/07 ...
11 years, 5 months ago (2009-07-08 00:06:46 UTC) #14
huanr
With the change, in DOMStorageDispatcherHost::Send, does message get deleted twice?
11 years, 5 months ago (2009-07-14 20:27:32 UTC) #15
jorlow
Actually, before the change it got deleted twice. I believe it's correct now. Note that ...
11 years, 5 months ago (2009-07-14 20:40:55 UTC) #16
huanr
11 years, 5 months ago (2009-07-15 05:07:23 UTC) #17
You are right. The old code has the bug. I was reviewing Coverity
defect and found this issue. It is based on an out of date source
check out.

Huan

On Tue, Jul 14, 2009 at 1:40 PM, Jeremy Orlow<jorlow@chromium.org> wrote:
> Actually, before the change it got deleted twice.=A0 I believe it's corre=
ct
> now.
>
> Note that no one is actually using the thread yet (and that use will be
> behind a flag for a bit).
>
> J
>
> On Tue, Jul 14, 2009 at 1:27 PM, <huanr@chromium.org> wrote:
>>
>> With the change, in DOMStorageDispatcherHost::Send, does message get
>> deleted twice?
>>
>> http://codereview.chromium.org/149238
>
>

Powered by Google App Engine
This is Rietveld 408576698