OSDN Git Service

Preload public libraries on Runtime::Start()
authorDimitry Ivanov <dimitry@google.com>
Mon, 22 Feb 2016 22:26:48 +0000 (14:26 -0800)
committerDimitry Ivanov <dimitry@google.com>
Thu, 25 Feb 2016 00:42:50 +0000 (16:42 -0800)
commitea9fc5bd31781fb380ace74ccddf2137c7dcc5d9
treef75edd10a60aab5b7c1ac1bf210b35cd2913d425
parent4e4e64511e530db37b33f450016afe49db3c4b20
Preload public libraries on Runtime::Start()

Preloading public libraries on Runtime::Start()
instead of doing it in native_loader c-tor
ensures that the libraries are loaded only for
binaries that are using Android Runtime, and not
just linking against libandroid_runtime or libart.

Loading public libraries on Runtime::Start()
also helps some apps to save startup time and space
by ensuring that all NDK libraries are loaded
and ready to use.

Bug: http://b/27245894
Change-Id: I15679a72450f3d18a7dd503d0ae977cebcfd7f52
(cherry picked from commit 7bca74e53d3665bcd243d4e0277f6561c0c80271)
runtime/runtime.cc