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

Commit c6a63f34 authored by Narayan Kamath's avatar Narayan Kamath Committed by android-build-merger
Browse files

LoadedApk: Don\'t set up JIT profile support inside the system_server. am: 2d4a222d am: 3ec2508c

am: 1f803c3c

* commit '1f803c3c':
  LoadedApk: Don't set up JIT profile support inside the system_server.

Change-Id: I9a8587ea42d116bdf60845e9f41b88c275c9b751
parents 021d203c 1f803c3c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -514,11 +514,15 @@ public final class LoadedApk {
        }

        // Setup jit profile support.
        //
        // It is ok to call this multiple times if the application gets updated with new splits.
        // The runtime only keeps track of unique code paths and can handle re-registration of
        // the same code path. There's no need to pass `addedPaths` since any new code paths
        // are already in `mApplicationInfo`.
        if (needToSetupJitProfiles) {
        //
        // It is NOT ok to call this function from the system_server (for any of the packages it
        // loads code from) so we explicitly disallow it there.
        if (needToSetupJitProfiles && !ActivityThread.isSystem()) {
            // Temporarily disable logging of disk reads/writes on the Looper thread
            // as this is early and necessary. Write is only needed to create the
            // profile file if it's not already there.