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

Commit c06e70e6 authored by Prashanth Swaminathan's avatar Prashanth Swaminathan Committed by Automerger Merge Worker
Browse files

Merge "Set child process name with child zygote args" into main am: c81dba07

parents 5fdf9f5a c81dba07
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -868,6 +868,11 @@ public final class Zygote {
                                 args.mPkgDataInfoList, args.mAllowlistedDataInfoList,
                                 args.mBindMountAppDataDirs, args.mBindMountAppStorageDirs);

            // While `specializeAppProcess` sets the thread name on the process's main thread, this
            // is distinct from the app process name which appears in stack traces, as the latter is
            // sourced from the argument buffer of the Process class. Set the app process name here.
            Zygote.setAppProcessName(args, TAG);

            Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);

            return ZygoteInit.zygoteInit(args.mTargetSdkVersion,
+0 −1
Original line number Diff line number Diff line
@@ -296,7 +296,6 @@ class ZygoteConnection {
                    } else {
                        // child; result is a Runnable.
                        zygoteServer.setForkChild();
                        Zygote.setAppProcessName(parsedArgs, TAG);  // ??? Necessary?
                        return result;
                    }
                }