OSDN Git Service

Revert "Preload public libraries on Runtime::Start()"
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 25 Feb 2016 08:50:50 +0000 (08:50 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 25 Feb 2016 08:50:50 +0000 (08:50 +0000)
Breaks anyone not working on up-to-date devices/trees. I'll work on a revert of the revert.

Bug: http://b/27245894

This reverts commit ea9fc5bd31781fb380ace74ccddf2137c7dcc5d9.

Change-Id: Ie8fc286a64de4db2c905502a528005022803ed94

runtime/runtime.cc

index 9f7faba..eb5455a 100644 (file)
@@ -25,7 +25,6 @@
 
 #define ATRACE_TAG ATRACE_TAG_DALVIK
 #include <cutils/trace.h>
-#include <nativeloader/native_loader.h>
 #include <signal.h>
 #include <sys/syscall.h>
 #include "base/memory_tool.h"
@@ -552,11 +551,6 @@ bool Runtime::Start() {
   }
 #endif
 
-  // This line makes sure that all public native libraries
-  // are loaded prior to runtime start; saves app load times
-  // and memory.
-  android::PreloadPublicNativeLibraries();
-
   // Restore main thread state to kNative as expected by native code.
   Thread* self = Thread::Current();