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>
Wed, 24 Feb 2016 23:35:15 +0000 (15:35 -0800)
commit7bca74e53d3665bcd243d4e0277f6561c0c80271
tree98e6fb035265d7491f48a1e7925a4f5941de0b14
parent6e2237d6615c8f7b09c99d196e5effcfd087943b
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
runtime/runtime.cc