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

Issue 115773: Prototype implementation of zygotes (Closed)

Created:
11 years, 7 months ago by dank
Modified:
9 years, 7 months ago
Reviewers:
TVL, agl
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Prototype implementation of zygotes. Limitations that need addressing still: - Doesn't forcibly terminate children that should have exited but haven't Enable with env var ENABLE_ZYGOTE_MANAGER=1. BUG=11841 TEST= start the browser, then make chrome and all .pak files unreadable; or alternately, start an installed browser, and uninstall the browser while it's running. Then create a new tab and browse to two new sites. Here's an example script to hide and unhide the .pak files (note: do not move the directory they're in, that doesn't work): #!/bin/sh chmod_all() { chmod $1 sconsbuild/Debug/chrome for path in . locales obj/chrome/app/intermediate/repack obj/global_intermediate/* themes do chmod $1 sconsbuild/Debug/$path/*.pak done } case $1 in hide) chmod_all 000 ;; show) chmod_all 755 ;; esac Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17840

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 34

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 16

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1415 lines, -15 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M base/command_line.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M base/command_line.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M base/file_descriptor_shuffle.cc View 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M base/file_util_posix.cc View 2 3 4 5 6 7 8 9 2 chunks +22 lines, -4 lines 0 comments Download
M base/logging.h View 1 chunk +7 lines, -0 lines 0 comments Download
M base/logging.cc View 9 11 12 13 4 chunks +24 lines, -0 lines 0 comments Download
M base/process_util.h View 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M base/process_util_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -0 lines 0 comments Download
A base/reserved_file_descriptors.h View 1 chunk +36 lines, -0 lines 0 comments Download
A base/zygote_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +143 lines, -0 lines 0 comments Download
A base/zygote_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +828 lines, -0 lines 0 comments Download
A base/zygote_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +266 lines, -0 lines 0 comments Download
M chrome/app/breakpad_linux.cc View 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/app/chrome_dll_main.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 9 10 11 12 13 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/common/ipc_channel_posix.cc View 12 13 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/process_watcher_posix.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
agl
Only dealing with high level stuff: There should be two socketpairs in play. Both should ...
11 years, 7 months ago (2009-05-27 00:41:55 UTC) #1
dank
OK, this is a lot closer to real. It still uses the single socketpair, and ...
11 years, 6 months ago (2009-05-29 18:18:00 UTC) #2
dank
Now works even if you start the app with a relative path.
11 years, 6 months ago (2009-05-29 19:54:51 UTC) #3
agl
I got through most of zygote_manager.cc, but this code is not ready for review. Mostly ...
11 years, 6 months ago (2009-06-01 18:26:32 UTC) #4
dank
Thanks for the good partial review. I've addressed some of the interesting bits. I've been ...
11 years, 6 months ago (2009-06-04 05:15:21 UTC) #5
dank
I think I've addressed your comments, except for the bit about simplifying poll() result handling; ...
11 years, 6 months ago (2009-06-05 06:00:32 UTC) #6
agl
I didn't see reversed_file_descriptors.h in the CL. This looks landable at this state, although there ...
11 years, 6 months ago (2009-06-05 20:53:52 UTC) #7
dank
OK, took care of all those issues, I think. Changed the environment variable check to ...
11 years, 6 months ago (2009-06-06 00:13:05 UTC) #8
TVL
I noticed a small bump in the Mac executable size this weekend, so I was ...
11 years, 6 months ago (2009-06-08 03:04:15 UTC) #9
dank
I'm at a loss to explain the size change. 40KB seems excessive for the bits ...
11 years, 6 months ago (2009-06-08 03:35:28 UTC) #10
TVL
11 years, 6 months ago (2009-06-08 12:22:12 UTC) #11
On 2009/06/08 03:35:28, dank wrote:
> I'm at a loss to explain the size change.  40KB seems excessive for the
> bits that were not in #ifdef OS_LINUX.  I'll fix logging.cc, but I can't
> imagine those seven lines of code could explain 30-40KB.  Is debugging
> info included in those sizes?
> 
> Maybe our daily builds should include size info for each of our .o's...

I thought it was only 4k, i'll take a peek again today.

Powered by Google App Engine
This is Rietveld 408576698