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 8397001: Open NaCl IRT file only once at startup (Closed)

Created:
9 years, 2 months ago by Roland McGrath
Modified:
9 years, 1 month ago
Reviewers:
brettw, Elliot Glaysher
CC:
chromium-reviews, native-client-reviews_googlegroups.com, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Open NaCl IRT file only once at startup This changes the NaCl startup dance so that the IRT file is opened just once at browser startup. That file descriptor is kept around and passed repeatedly to each NaCl process launched. This ensures that when autoupdate replaces the file on disk with a new version, we continue to use the original file that corresponds to the old browser version that's still running. We also eliminate the cases for not having an IRT file, which is now a hard error (i.e. prevents NaCl launches). It's been a hard requirement for NaCl that the IRT be available since Chromium 14. BUG= http://code.google.com/p/nativeclient/issues/detail?id=1772 TEST= hand-tested in Chromium build on Linux, Mac, and Windows R=brettw@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110136

Patch Set 1 #

Total comments: 2

Patch Set 2 : reworked to use file thread, be lazy on non-linux #

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -103 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.h View 1 3 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 10 chunks +195 lines, -68 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/nacl_messages.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/nacl/nacl_listener.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/nacl/nacl_listener.cc View 2 chunks +14 lines, -16 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Roland McGrath
9 years, 2 months ago (2011-10-25 23:29:41 UTC) #1
Roland McGrath
ping?
9 years, 1 month ago (2011-10-27 17:04:14 UTC) #2
brettw
Sorry for the delay, I'm half on leave these days. http://codereview.chromium.org/8397001/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/8397001/diff/1/chrome/browser/chrome_browser_main.cc#newcode1888 ...
9 years, 1 month ago (2011-10-28 18:54:31 UTC) #3
Roland McGrath
On 2011/10/28 18:54:31, brettw wrote: > Sorry for the delay, I'm half on leave these ...
9 years, 1 month ago (2011-10-28 19:27:13 UTC) #4
brettw
Adding erg for the handle issue. On Linux I guess we do keep some handles ...
9 years, 1 month ago (2011-10-28 19:55:52 UTC) #5
Roland McGrath
On 2011/10/28 19:55:52, brettw wrote: > Adding erg for the handle issue. On Linux I ...
9 years, 1 month ago (2011-10-28 20:00:39 UTC) #6
Elliot Glaysher
http://codereview.chromium.org/8397001/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/8397001/diff/1/chrome/browser/chrome_browser_main.cc#newcode1888 chrome/browser/chrome_browser_main.cc:1888: NaClProcessHost::OpenIrtLibraryFile(); On 2011/10/28 18:54:32, brettw wrote: > You're doing ...
9 years, 1 month ago (2011-10-28 20:05:23 UTC) #7
brettw
On 2011/10/28 20:00:39, Roland McGrath wrote: > On 2011/10/28 19:55:52, brettw wrote: > > Adding ...
9 years, 1 month ago (2011-10-28 20:11:31 UTC) #8
Roland McGrath
I'm going to rework this to be less synchronous. Probably take a few days.
9 years, 1 month ago (2011-10-28 21:20:32 UTC) #9
Roland McGrath
PTAL
9 years, 1 month ago (2011-10-31 20:19:09 UTC) #10
brettw
Sorry, I'll be going on leave tomorrow, so I'm going to defer to Elliot. I ...
9 years, 1 month ago (2011-11-01 04:50:49 UTC) #11
Roland McGrath
On 2011/11/01 04:50:49, brettw wrote: > Sorry, I'll be going on leave tomorrow, so I'm ...
9 years, 1 month ago (2011-11-01 16:49:20 UTC) #12
Elliot Glaysher
lgtm from a timing issue perspective (If you could get another nacl person to look ...
9 years, 1 month ago (2011-11-01 18:24:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcgrathr@chromium.org/8397001/15001
9 years, 1 month ago (2011-11-12 00:19:52 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-12 00:19:58 UTC) #15
Presubmit check for 8397001-15001 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
New code should not use wstrings.  If you are calling an API that accepts a
wstring, fix the API.
    chrome/browser/renderer_host/chrome_render_message_filter.cc:150

Presubmit checks took 2.2s to calculate.

Powered by Google App Engine
This is Rietveld 408576698