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

Commit 27c724e2 authored by Dmitrii Ishcheikin's avatar Dmitrii Ishcheikin Committed by Gerrit Code Review
Browse files

Merge "Split dirty-image-objects file between art and framework" into main

parents c3f0852c 71ada7db
Loading
Loading
Loading
Loading
+1427 −1702

File changed.

Preview size limit exceeded, changes collapsed.

+12 −4
Original line number Diff line number Diff line
@@ -1022,10 +1022,18 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote, bool p
    parseCompilerOption("dalvik.vm.image-dex2oat-filter", dex2oatImageCompilerFilterBuf,
                        "--compiler-filter=", "-Ximage-compiler-option");

    // If there is a dirty-image-objects file, push it.
    if (hasFile("/system/etc/dirty-image-objects")) {
    // If there are dirty-image-objects files, push them.
    const char* dirty_image_objects_options[] = {
            "--dirty-image-objects=/apex/com.android.art/etc/dirty-image-objects",
            "--dirty-image-objects=/system/etc/dirty-image-objects",
    };
    for (const char* option : dirty_image_objects_options) {
        // Get the file path by finding the first '/' and check if
        // this file exists.
        if (hasFile(strchr(option, '/'))) {
            addOption("-Ximage-compiler-option");
        addOption("--dirty-image-objects=/system/etc/dirty-image-objects");
            addOption(option);
        }
    }

    parseCompilerOption("dalvik.vm.image-dex2oat-threads", dex2oatThreadsImageBuf, "-j",