summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2019-04-25 22:14:58 +0100
committerTreehugger Robot <treehugger-gerrit@google.com>2019-04-29 15:08:50 +0000
commit5fe1b23d54303a1adf91b644f26f6df066e175ed (patch)
tree7a3a72048a42b05d512454d97c3c2ded6d57269e /compiler/optimizing/optimizing_compiler.cc
parent2792de4c2c624efd919cdb2294cceffbe6b66e2f (diff)
Make default namespace an "alias" for runtime rather than the other way
around. There isn't a way to make a namespace properly an alias for another - just adding a link with allow_all_shared_libs true doesn't quite do it since links aren't transitive. That meant that "runtime" in the previous setup did not pass on links to "default" when "classloader-namespace" in libnativeloader added links to "runtime". With this we link from "default" to "runtime" instead, and only APEX binaries will start in "default" - nothing else should create links to that namespace when this config is in use. This also ensures no libraries are actually loaded in "default", which could otherwise create duplicate instances with libraries loaded in "runtime". Also make the "platform" namespace visible, to work with android_link_namespace() in the classloader-namespace setup, and update the reason why those namespaces need visibility. Test: Flash and boot Test: Run a target run test similar to art/test/run-test: Push libarttest.so to the test directory, then ANDROID_ADDITIONAL_PUBLIC_LIBRARIES=libc++.so:libbacktrace.so:libbase.so:libnativehelper.so:libart.so:libdexfile.so:libprofile.so:libartbase.so \ dalvikvm -Djava.library.path=. -cp 203-multi-checkpoint.jar Main arttest Bug: 130293232 Bug: 121117762 Change-Id: I0f0b58aac3ec869b42510f9ef6af7cb26667de96
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions