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

Issue 829183005: Always use mojo_shell in over-http mode (Closed)

Created:
5 years, 11 months ago by eseidel
Modified:
5 years, 11 months ago
CC:
abarth-chromium, aa, esprehn, jamesr, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Always use mojo_shell in over-http mode --origin tells mojo_shell to map all mojo: urls to to a new base-url instead of the build directory. This makes skydb's mojo_shell *always* use the network loading path, which is what Android mojo_shell does and is more like how mojo_shell will eventually be used. I also fixed the disk-space leak in the dynamic_application_loader's NetworkLoader path by having it immediately unlink the /tmp copy of the library after dlopen. In order to keep pprof working I had to teach the dynamic_application_loader to write out a map of /tmp/file -> url mappings so that we can fix the pprof file afterwords. This will "break" skydb --gdb on linux in exactly as much as it is already broken on Android, but I'm working on a build-id based solution for both so that gdb knows how to find symbols for non-existant randomly named /tmp libraries. R=abarth@chromium.org, viettrungluu@chromium.org BUG=450696 Committed: https://chromium.googlesource.com/external/mojo/+/05d7c0dc584f9bde9ea4135fcb1b17e7088ee671

Patch Set 1 #

Patch Set 2 : Fix pprof #

Total comments: 8

Patch Set 3 : Updated per reviews #

Total comments: 14

Patch Set 4 : Fixed per trung #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -16 lines) Patch
M shell/dynamic_application_loader.cc View 1 2 3 5 chunks +37 lines, -3 lines 2 comments Download
M sky/tools/debugger/prompt/prompt.cc View 1 2 2 chunks +16 lines, -2 lines 0 comments Download
M sky/tools/skydb View 1 2 6 chunks +52 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
eseidel
5 years, 11 months ago (2015-01-20 23:18:59 UTC) #1
eseidel
5 years, 11 months ago (2015-01-20 23:19:20 UTC) #2
abarth-chromium
lgtm
5 years, 11 months ago (2015-01-20 23:20:52 UTC) #3
eseidel
This is going to break adam's pprofing, so I need to find a way to ...
5 years, 11 months ago (2015-01-20 23:46:29 UTC) #4
eseidel
Updated to fix pprof and the disk-space leak. PTAL.
5 years, 11 months ago (2015-01-21 22:11:42 UTC) #5
abarth-chromium
Looks fine, but you need someone else to review the shell parts. https://codereview.chromium.org/829183005/diff/20001/sky/tools/debugger/prompt/prompt.cc File sky/tools/debugger/prompt/prompt.cc ...
5 years, 11 months ago (2015-01-21 22:18:49 UTC) #6
jamesr
The file saving part seems fine, the way the unlink is hooked up seems fishy ...
5 years, 11 months ago (2015-01-21 22:23:04 UTC) #8
eseidel
https://codereview.chromium.org/829183005/diff/20001/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/829183005/diff/20001/shell/dynamic_application_loader.cc#newcode366 shell/dynamic_application_loader.cc:366: LOG(INFO) << "ReportComplete"; On 2015/01/21 22:23:04, jamesr wrote: > ...
5 years, 11 months ago (2015-01-21 22:44:43 UTC) #9
eseidel
Trung, can you review the dynamic_application_loader bits?
5 years, 11 months ago (2015-01-21 22:46:01 UTC) #11
vtl
https://codereview.chromium.org/829183005/diff/40001/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/829183005/diff/40001/shell/dynamic_application_loader.cc#newcode295 shell/dynamic_application_loader.cc:295: base::DeleteFile(path_, false); This makes me sad, but oh well. ...
5 years, 11 months ago (2015-01-21 23:16:21 UTC) #13
eseidel
https://codereview.chromium.org/829183005/diff/40001/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/829183005/diff/40001/shell/dynamic_application_loader.cc#newcode295 shell/dynamic_application_loader.cc:295: base::DeleteFile(path_, false); On 2015/01/21 23:16:21, vtl wrote: > This ...
5 years, 11 months ago (2015-01-21 23:23:31 UTC) #14
eseidel
PTAL
5 years, 11 months ago (2015-01-21 23:23:54 UTC) #15
viettrungluu
LGTM w/nit https://codereview.chromium.org/829183005/diff/60001/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/829183005/diff/60001/shell/dynamic_application_loader.cc#newcode285 shell/dynamic_application_loader.cc:285: static nit: Probably the "canonical" way to ...
5 years, 11 months ago (2015-01-21 23:32:50 UTC) #16
eseidel
Committed patchset #4 (id:60001) manually as 05d7c0dc584f9bde9ea4135fcb1b17e7088ee671 (presubmit successful).
5 years, 11 months ago (2015-01-21 23:53:21 UTC) #17
qsr
5 years, 11 months ago (2015-01-22 16:29:07 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/829183005/diff/60001/shell/dynamic_applicatio...
File shell/dynamic_application_loader.cc (right):

https://codereview.chromium.org/829183005/diff/60001/shell/dynamic_applicatio...
shell/dynamic_application_loader.cc:375: DeleteFile(path_, false);
I don't think this fix the issue with file leaks. This is called when the
application is finished. Most of our apps never finish.

See https://codereview.chromium.org/865253002 for a fix.

Powered by Google App Engine
This is Rietveld 408576698