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

Commit 8c38fd7d authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by android-build-merger
Browse files

Merge "Use the boot class loader as parent of system server loader." am: 7baf5a8d am: c2a38e56

am: 955963c1

Change-Id: I732692d12432b0bd0d5e3a313e49388d2cfc34ac
parents a8a89953 955963c1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -536,9 +536,11 @@ public class ZygoteInit {
    static ClassLoader createPathClassLoader(String classPath, int targetSdkVersion) {
        String libraryPath = System.getProperty("java.library.path");

        // We use the boot class loader, that's what the runtime expects at AOT.
        ClassLoader parent = ClassLoader.getSystemClassLoader().getParent();

        return ClassLoaderFactory.createClassLoader(classPath, libraryPath, libraryPath,
                ClassLoader.getSystemClassLoader(), targetSdkVersion, true /* isNamespaceShared */,
                null /* classLoaderName */);
                parent, targetSdkVersion, true /* isNamespaceShared */, null /* classLoaderName */);
    }

    /**