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

Issue 909553003: Android: Get rid of extra dup()s on launching child processes (Closed)

Created:
5 years, 10 months ago by Hajime Morrita
Modified:
5 years, 10 months ago
Reviewers:
jam, mdempsky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Get rid of extra dup()s on launching child processes This is a regression from [1] which added a dup() call on the renderer launching process. This CL removes these calls by reveiling the subtle ownership of the file descriptors. The original intention here was to completely hide and simplify the notion of the ownership, at the cost of a few dup() calls. However, the crash report on the reported bug indicates that the dup() can fail and it lets the renderer initialization fail, probably due to some per-process limit of the number of opened files. [1] https://codereview.chromium.org/585203002 R=mdempsky@chromium.org, jam@chromium.org BUG=455364 Committed: https://crrev.com/f7302eb74f6e79d5b4e26ea5e9aa4e4eb81a52f1 Cr-Commit-Position: refs/heads/master@{#315353}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M content/browser/android/child_process_launcher_android.cc View 1 chunk +4 lines, -6 lines 1 comment Download
M content/browser/file_descriptor_info_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/file_descriptor_info_impl.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M content/public/browser/file_descriptor_info.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Hajime Morrita
5 years, 10 months ago (2015-02-06 23:02:19 UTC) #1
Hajime Morrita
jam: PTAL at content/public/browser/file_descriptor_info.h? mdempsky: PTAL at overall CL?
5 years, 10 months ago (2015-02-06 23:03:52 UTC) #2
jam
lgtm
5 years, 10 months ago (2015-02-06 23:58:18 UTC) #3
mdempsky
lgtm https://codereview.chromium.org/909553003/diff/1/content/browser/android/child_process_launcher_android.cc File content/browser/android/child_process_launcher_android.cc (right): https://codereview.chromium.org/909553003/diff/1/content/browser/android/child_process_launcher_android.cc#newcode134 content/browser/android/child_process_launcher_android.cc:134: file_auto_close[i] = files_to_register->OwnsFD(file_fds[i]); OwnsFD and ReleaseFD seem like ...
5 years, 10 months ago (2015-02-07 02:37:05 UTC) #4
Hajime Morrita
Thanks for the review! On 2015/02/07 02:37:05, mdempsky wrote: > lgtm > > https://codereview.chromium.org/909553003/diff/1/content/browser/android/child_process_launcher_android.cc > ...
5 years, 10 months ago (2015-02-09 18:44:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/909553003/1
5 years, 10 months ago (2015-02-09 18:46:00 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-09 18:53:34 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 18:54:10 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f7302eb74f6e79d5b4e26ea5e9aa4e4eb81a52f1
Cr-Commit-Position: refs/heads/master@{#315353}

Powered by Google App Engine
This is Rietveld 408576698