am 3b74850d: am 93468f7c: Merge "Add zygote preloading of shared libraries" into lmp-dev

* commit '3b74850dee7e41991794f778eb2f12b43e453a0d':
  Add zygote preloading of shared libraries
This commit is contained in:
Brian Carlstrom
2014-09-12 05:46:04 +00:00
committed by Android Git Automerger

View File

@@ -248,12 +248,20 @@ public class ZygoteInit {
preloadClasses();
preloadResources();
preloadOpenGL();
preloadSharedLibraries();
// Ask the WebViewFactory to do any initialization that must run in the zygote process,
// for memory sharing purposes.
WebViewFactory.prepareWebViewInZygote();
Log.d(TAG, "end preload");
}
private static void preloadSharedLibraries() {
Log.i(TAG, "Preloading shared libraries...");
System.loadLibrary("android");
System.loadLibrary("compiler_rt");
System.loadLibrary("jnigraphics");
}
private static void preloadOpenGL() {
if (!SystemProperties.getBoolean(PROPERTY_DISABLE_OPENGL_PRELOADING, false)) {
EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);