Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b84b7889 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Clarify why it's safe to add java.library.path to the classloader...

Merge "Clarify why it's safe to add java.library.path to the classloader namespace." am: 27310f03 am: bca09c81 am: e14a8ca7

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507503

Change-Id: I39afd342c20288f3776da08584c5d2fa73c4f220
parents cc3f3b29 e14a8ca7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -625,8 +625,11 @@ public class ZygoteInit {

    /**
     * Creates a PathClassLoader for the given class path that is associated with a shared
     * namespace, i.e., this classloader can access platform-private native libraries. The
     * classloader will use java.library.path as the native library path.
     * namespace, i.e., this classloader can access platform-private native libraries.
     *
     * The classloader will add java.library.path to the native library path for the classloader
     * namespace. Since it includes platform locations like /system/lib, this is only appropriate
     * for platform code that don't need linker namespace isolation (as opposed to APEXes and apps).
     */
    static ClassLoader createPathClassLoader(String classPath, int targetSdkVersion) {
        String libraryPath = System.getProperty("java.library.path");