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

Issue 255693002: Make SandboxIPCProcess a thread. (Closed)

Created:
6 years, 8 months ago by Jorge Lucangeli Obes
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Mark Mentovai
Visibility:
Public.

Description

Make SandboxIPCProcess a thread. BUG=322185 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267583

Patch Set 1 #

Patch Set 2 : Fix compile failures. #

Patch Set 3 : Really fix compile. #

Total comments: 7

Patch Set 4 : Add check for POLLERR. #

Total comments: 4

Patch Set 5 : Rebase. #

Patch Set 6 : Change LOG(ERROR) to VLOG(1). #

Total comments: 1

Patch Set 7 : Check for POLLHUP too. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -95 lines) Patch
M chrome/browser/memory_details.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_sandbox_host_linux.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_sandbox_host_linux.cc View 1 2 3 4 2 chunks +7 lines, -27 lines 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -13 lines 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.cc View 1 2 3 4 5 6 7 14 chunks +28 lines, -37 lines 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/zygote_host_linux.h View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
Jorge Lucangeli Obes
Hi guys, This is my proposal to turn SandboxIPCProcess into a thread in the browser ...
6 years, 7 months ago (2014-04-29 00:18:48 UTC) #1
piman
https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/render_sandbox_host_linux.cc File content/browser/renderer_host/render_sandbox_host_linux.cc (left): https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/render_sandbox_host_linux.cc#oldcode52 content/browser/renderer_host/render_sandbox_host_linux.cc:52: #endif // !defined(THREAD_SANITIZER) Has the zygote been launched at ...
6 years, 7 months ago (2014-04-29 00:25:45 UTC) #2
Jorge Lucangeli Obes
On 2014/04/29 00:25:45, piman wrote: > https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/render_sandbox_host_linux.cc > File content/browser/renderer_host/render_sandbox_host_linux.cc (left): > > https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/render_sandbox_host_linux.cc#oldcode52 > ...
6 years, 7 months ago (2014-04-29 01:00:10 UTC) #3
piman
https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode151 content/browser/renderer_host/sandbox_ipc_linux.cc:151: const int r = HANDLE_EINTR(poll(pfds, 2, -1 /* no ...
6 years, 7 months ago (2014-04-29 01:47:02 UTC) #4
piman
On Mon, Apr 28, 2014 at 6:00 PM, <jorgelo@chromium.org> wrote: > On 2014/04/29 00:25:45, piman ...
6 years, 7 months ago (2014-04-29 01:47:18 UTC) #5
Jorge Lucangeli Obes
On 2014/04/29 01:47:18, piman wrote: > On Mon, Apr 28, 2014 at 6:00 PM, <mailto:jorgelo@chromium.org> ...
6 years, 7 months ago (2014-04-29 18:34:13 UTC) #6
jln (very slow on Chromium)
The change looks good in general, thanks for taking this on! > > Well, right ...
6 years, 7 months ago (2014-04-29 19:45:27 UTC) #7
Jorge Lucangeli Obes
PTAL. I replaced the lifeline_fd check with a check for POLLERR. https://chromiumcodereview.appspot.com/255693002/diff/40001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): ...
6 years, 7 months ago (2014-04-29 20:51:10 UTC) #8
piman
https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode169 content/browser/renderer_host/sandbox_ipc_linux.cc:169: LOG(ERROR) << "poll: Error condition in one or more ...
6 years, 7 months ago (2014-04-29 21:23:51 UTC) #9
piman
On Tue, Apr 29, 2014 at 12:45 PM, <jln@chromium.org> wrote: > The change looks good ...
6 years, 7 months ago (2014-04-29 21:28:03 UTC) #10
piman
On Tue, Apr 29, 2014 at 2:27 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
6 years, 7 months ago (2014-04-29 21:32:53 UTC) #11
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode169 content/browser/renderer_host/sandbox_ipc_linux.cc:169: LOG(ERROR) << "poll: Error condition in one or more ...
6 years, 7 months ago (2014-04-29 21:40:15 UTC) #12
Jorge Lucangeli Obes
On 2014/04/29 21:32:53, piman wrote: > On Tue, Apr 29, 2014 at 2:27 PM, Antoine ...
6 years, 7 months ago (2014-04-29 21:43:49 UTC) #13
jln (very slow on Chromium)
On 2014/04/29 21:28:03, piman wrote: > On Tue, Apr 29, 2014 at 12:45 PM, <mailto:jln@chromium.org> ...
6 years, 7 months ago (2014-04-29 21:48:41 UTC) #14
jln (very slow on Chromium)
+cc: mdempsky FYI
6 years, 7 months ago (2014-04-29 21:49:10 UTC) #15
mdempsky
On 2014/04/29 21:28:03, piman wrote: > It actually bugs me a lot that all the ...
6 years, 7 months ago (2014-04-29 21:56:55 UTC) #16
piman
On Tue, Apr 29, 2014 at 2:43 PM, <jorgelo@chromium.org> wrote: > On 2014/04/29 21:32:53, piman ...
6 years, 7 months ago (2014-04-29 21:57:53 UTC) #17
Jorge Lucangeli Obes
On 2014/04/29 21:57:53, piman wrote: > On Tue, Apr 29, 2014 at 2:43 PM, <mailto:jorgelo@chromium.org> ...
6 years, 7 months ago (2014-04-29 22:00:38 UTC) #18
mdempsky
On 2014/04/29 21:56:55, mdempsky wrote: > The messages from renderer->browser are sent using SOCK_SEQPACKET, which ...
6 years, 7 months ago (2014-04-29 22:02:06 UTC) #19
piman
On Tue, Apr 29, 2014 at 2:40 PM, <jorgelo@chromium.org> wrote: > > https://chromiumcodereview.appspot.com/255693002/diff/ > 60001/content/browser/renderer_host/sandbox_ipc_linux.cc ...
6 years, 7 months ago (2014-04-29 22:03:00 UTC) #20
jln (very slow on Chromium)
On 2014/04/29 22:00:38, Jorge Lucangeli Obes wrote: > On 2014/04/29 21:57:53, piman wrote: > > ...
6 years, 7 months ago (2014-04-29 22:05:00 UTC) #21
Jorge Lucangeli Obes
On 2014/04/29 22:03:00, piman wrote: > On Tue, Apr 29, 2014 at 2:40 PM, <mailto:jorgelo@chromium.org> ...
6 years, 7 months ago (2014-04-29 22:06:49 UTC) #22
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode137 content/browser/renderer_host/sandbox_ipc_linux.cc:137: Do you want to shutdown SHUT_WR browser_socket to make ...
6 years, 7 months ago (2014-04-29 22:08:47 UTC) #23
Jorge Lucangeli Obes
On 2014/04/29 22:08:47, jln wrote: > https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc > File content/browser/renderer_host/sandbox_ipc_linux.cc (right): > > https://chromiumcodereview.appspot.com/255693002/diff/60001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode137 > ...
6 years, 7 months ago (2014-04-29 22:09:48 UTC) #24
jln (very slow on Chromium)
One example of why getting rid of this IPC channel is, sadly, so hard: https://codereview.chromium.org/251613002/diff/270001/content/browser/time_zone_monitor.h#newcode20
6 years, 7 months ago (2014-04-29 22:11:55 UTC) #25
jln (very slow on Chromium)
On 2014/04/29 22:09:48, Jorge Lucangeli Obes wrote: > I can do that too. Does it ...
6 years, 7 months ago (2014-04-29 22:13:12 UTC) #26
piman
On Tue, Apr 29, 2014 at 3:06 PM, <jorgelo@chromium.org> wrote: > On 2014/04/29 22:03:00, piman ...
6 years, 7 months ago (2014-04-29 22:16:03 UTC) #27
jln (very slow on Chromium)
On 2014/04/29 22:11:55, jln wrote: > One example of why getting rid of this IPC ...
6 years, 7 months ago (2014-04-29 22:19:26 UTC) #28
Jorge Lucangeli Obes
On 2014/04/29 22:16:03, piman wrote: > On Tue, Apr 29, 2014 at 3:06 PM, <mailto:jorgelo@chromium.org> ...
6 years, 7 months ago (2014-04-29 22:22:35 UTC) #29
Jorge Lucangeli Obes
Rebased on top of the shutdown(2) change. Changed LOG(ERROR) to VLOG. I've been browsing with ...
6 years, 7 months ago (2014-04-30 17:58:19 UTC) #30
jln (very slow on Chromium)
lgtm (in truth, this looks horrible, but this CL is a nice improvement :)
6 years, 7 months ago (2014-04-30 19:32:03 UTC) #31
jln (very slow on Chromium)
(and again I forgot to send the comments with my reply). https://chromiumcodereview.appspot.com/255693002/diff/100001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): ...
6 years, 7 months ago (2014-04-30 20:25:44 UTC) #32
piman
On Wed, Apr 30, 2014 at 10:58 AM, <jorgelo@chromium.org> wrote: > Rebased on top of ...
6 years, 7 months ago (2014-04-30 22:26:39 UTC) #33
piman
(lgtm if there's no zygote issue)
6 years, 7 months ago (2014-04-30 22:28:03 UTC) #34
jln (very slow on Chromium)
On 2014/04/30 22:26:39, piman wrote: > The issue is that we can't create the zygote ...
6 years, 7 months ago (2014-04-30 22:29:51 UTC) #35
Jorge Lucangeli Obes
On 2014/04/30 22:29:51, jln wrote: > On 2014/04/30 22:26:39, piman wrote: > > > The ...
6 years, 7 months ago (2014-05-01 01:02:33 UTC) #36
Jorge Lucangeli Obes
The CQ bit was checked by jorgelo@chromium.org
6 years, 7 months ago (2014-05-01 04:07:01 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/255693002/120001
6 years, 7 months ago (2014-05-01 04:07:26 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 04:07:31 UTC) #39
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/sandbox_ipc_linux.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-01 04:07:32 UTC) #40
Jorge Lucangeli Obes
The CQ bit was checked by jorgelo@chromium.org
6 years, 7 months ago (2014-05-01 05:33:11 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/255693002/140001
6 years, 7 months ago (2014-05-01 05:33:30 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 05:35:28 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium
6 years, 7 months ago (2014-05-01 05:35:28 UTC) #44
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 7 months ago (2014-05-01 08:31:19 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/255693002/140001
6 years, 7 months ago (2014-05-01 08:31:50 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 08:35:08 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-05-01 08:35:09 UTC) #48
Jorge Lucangeli Obes
Lei: could you review chrome/browser/memory_details.cc for OWNERS? I'm making the SandboxIPCProcess a thread so there's ...
6 years, 7 months ago (2014-05-01 16:45:08 UTC) #49
Lei Zhang
chrome/ lgtm
6 years, 7 months ago (2014-05-01 18:06:03 UTC) #50
Jorge Lucangeli Obes
The CQ bit was checked by jorgelo@chromium.org
6 years, 7 months ago (2014-05-01 18:11:15 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/255693002/140001
6 years, 7 months ago (2014-05-01 18:11:42 UTC) #52
commit-bot: I haz the power
Change committed as 267583
6 years, 7 months ago (2014-05-01 18:15:48 UTC) #53
Lei Zhang
A revert of this CL has been created in https://codereview.chromium.org/261783008/ by thestig@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-01 20:38:19 UTC) #54
Jorge Lucangeli Obes
6 years, 7 months ago (2014-05-01 20:40:09 UTC) #55
Message was sent while issue was closed.
On 2014/05/01 20:38:19, Lei Zhang wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/261783008/ by mailto:thestig@chromium.org.
> 
> The reason for reverting is: TSANv2 bot reports races on many many tests..

These seem to be races in Skia. Will take a look.

Powered by Google App Engine
This is Rietveld 408576698