Merge "Use the boot class loader as parent of system server loader."

am: 7baf5a8d73

Change-Id: Id67c494c59bc9e61f81406ac36d9c664adbf97b2
This commit is contained in:
Nicolas Geoffray
2018-12-19 00:55:33 -08:00
committed by android-build-merger

View File

@@ -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 */);
}
/**