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

Issue 807193006: Remove nonsfi token workaround. (Closed)

Created:
5 years, 11 months ago by teravest
Modified:
5 years, 11 months ago
Reviewers:
Mark Seaborn
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove nonsfi token workaround. Previously, file tokens were exposed to nonsfi plugins. Now that this is fixed (and we have test coverage for a nonsfi packaged app), we can remove the workaround that allowed nonzero token values. BUG=394130 TEST=browser_tests on linux_rel_precise32 Committed: https://crrev.com/4923bbcd251b3cf3519bc1251e26f8243db5ea02 Cr-Commit-Position: refs/heads/master@{#309916}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -22 lines) Patch
M components/nacl/renderer/nexe_load_manager.h View 2 chunks +6 lines, -0 lines 0 comments Download
M components/nacl/renderer/nexe_load_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 3 chunks +19 lines, -14 lines 2 comments Download
M ppapi/nacl_irt/manifest_service.cc View 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
teravest
5 years, 11 months ago (2014-12-30 21:13:26 UTC) #3
Mark Seaborn
LGTM, thanks
5 years, 11 months ago (2014-12-31 03:21:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807193006/20001
5 years, 11 months ago (2015-01-05 16:30:26 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 11 months ago (2015-01-05 17:17:29 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4923bbcd251b3cf3519bc1251e26f8243db5ea02 Cr-Commit-Position: refs/heads/master@{#309916}
5 years, 11 months ago (2015-01-05 17:18:24 UTC) #8
Shuhei Takahashi
A revert of this CL (patchset #1 id:20001) has been created in https://codereview.chromium.org/836273002/ by nya@chromium.org. ...
5 years, 11 months ago (2015-01-07 08:13:29 UTC) #9
Mark Seaborn
Checking I understand the cause of the performance regression... https://codereview.chromium.org/807193006/diff/20001/components/nacl/renderer/ppb_nacl_private_impl.cc File components/nacl/renderer/ppb_nacl_private_impl.cc (right): https://codereview.chromium.org/807193006/diff/20001/components/nacl/renderer/ppb_nacl_private_impl.cc#newcode688 components/nacl/renderer/ppb_nacl_private_impl.cc:688: ...
5 years, 11 months ago (2015-01-12 21:25:45 UTC) #10
teravest
5 years, 11 months ago (2015-01-12 22:00:53 UTC) #11
Message was sent while issue was closed.
On 2015/01/12 21:25:45, Mark Seaborn wrote:
> Checking I understand the cause of the performance regression...
> 
>
https://codereview.chromium.org/807193006/diff/20001/components/nacl/renderer...
> File components/nacl/renderer/ppb_nacl_private_impl.cc (right):
> 
>
https://codereview.chromium.org/807193006/diff/20001/components/nacl/renderer...
> components/nacl/renderer/ppb_nacl_private_impl.cc:688: if
> (load_manager->nonsfi())
> So this caused a fallback to a slow path in the caller, DownloadNexe()...
> 
>
https://codereview.chromium.org/807193006/diff/20001/components/nacl/renderer...
> components/nacl/renderer/ppb_nacl_private_impl.cc:1240: // The fast path
didn't
> work, we'll fetch the file using URLLoader and write
> So the reason for the performance regression was that this change causes
Non-SFI
> Mode to fall back to this code path, where open_resource() makes a copy of
each
> file?

That's correct.

> 
> Oops.  I should have realised that.  I actually didn't realise that we still
> *have* a code path that makes a copy of each file on startup.

Powered by Google App Engine
This is Rietveld 408576698