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

Issue 356923004: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed)

Created:
6 years, 6 months ago by jvoung (off chromium)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe Register the executables w/ the validation cache on open and hook up the file info just like the other NaCl module loads. The non-executable files are still opened without the windows-specific FLAG_EXEC. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3614 TEST= ValidationCacheOfTranslatorNexes Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280605

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : adjust expectations for other UMA test #

Total comments: 10

Patch Set 4 : review #

Patch Set 5 : fixup #

Total comments: 4

Patch Set 6 : review 2, rebase #

Patch Set 7 : typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -143 lines) Patch
M chrome/test/nacl/nacl_browsertest_uma.cc View 1 2 2 chunks +61 lines, -9 lines 0 comments Download
M components/nacl/browser/nacl_browser.h View 1 chunk +3 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_browser.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M components/nacl/browser/nacl_file_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_file_host.cc View 1 2 3 4 5 chunks +55 lines, -39 lines 1 comment Download
M components/nacl/browser/nacl_host_message_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/nacl_host_message_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 chunk +5 lines, -2 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 chunks +24 lines, -11 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 3 chunks +10 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 8 chunks +9 lines, -20 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.h View 1 2 3 4 chunks +8 lines, -12 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.cc View 3 chunks +22 lines, -16 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jvoung (off chromium)
6 years, 6 months ago (2014-06-26 17:34:43 UTC) #1
teravest
https://codereview.chromium.org/356923004/diff/40001/components/nacl/browser/nacl_file_host.cc File components/nacl/browser/nacl_file_host.cc (right): https://codereview.chromium.org/356923004/diff/40001/components/nacl/browser/nacl_file_host.cc#newcode42 components/nacl/browser/nacl_file_host.cc:42: // so that there is a function pointer. I'm ...
6 years, 6 months ago (2014-06-26 21:19:25 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/356923004/diff/40001/components/nacl/browser/nacl_file_host.cc File components/nacl/browser/nacl_file_host.cc (right): https://codereview.chromium.org/356923004/diff/40001/components/nacl/browser/nacl_file_host.cc#newcode42 components/nacl/browser/nacl_file_host.cc:42: // so that there is a function pointer. On ...
6 years, 6 months ago (2014-06-26 22:48:39 UTC) #3
Nick Bray (chromium)
LGTM https://codereview.chromium.org/356923004/diff/80001/components/nacl/browser/nacl_browser.cc File components/nacl/browser/nacl_browser.cc (right): https://codereview.chromium.org/356923004/diff/80001/components/nacl/browser/nacl_browser.cc#newcode123 components/nacl/browser/nacl_browser.cc:123: is_executable ? Nit: build the flags before the ...
6 years, 5 months ago (2014-06-27 21:03:16 UTC) #4
teravest
lgtm
6 years, 5 months ago (2014-06-27 21:29:55 UTC) #5
jvoung (off chromium)
Thanks! +tsepez for nacl_host_messages OWNERS https://codereview.chromium.org/356923004/diff/80001/components/nacl/browser/nacl_browser.cc File components/nacl/browser/nacl_browser.cc (right): https://codereview.chromium.org/356923004/diff/80001/components/nacl/browser/nacl_browser.cc#newcode123 components/nacl/browser/nacl_browser.cc:123: is_executable ? On 2014/06/27 ...
6 years, 5 months ago (2014-06-27 22:30:08 UTC) #6
Tom Sepez
The messages themselves LG, but I don't have the background to understand whether this allows ...
6 years, 5 months ago (2014-06-27 22:41:56 UTC) #7
jvoung (off chromium)
+jln who looked at this before -- I just wasn't sure if he was OOO ...
6 years, 5 months ago (2014-06-27 22:46:28 UTC) #8
Tom Sepez
Ok, I'll give you a LGTM based on the above explanation. jln, please object if ...
6 years, 5 months ago (2014-06-27 22:48:02 UTC) #9
jvoung (off chromium)
The CQ bit was checked by jvoung@chromium.org
6 years, 5 months ago (2014-06-30 15:19:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/356923004/120001
6 years, 5 months ago (2014-06-30 15:20:29 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-06-30 16:08:28 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-06-30 16:18:56 UTC) #13
Message was sent while issue was closed.
Change committed as 280605

Powered by Google App Engine
This is Rietveld 408576698