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

Commit 1984b113 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Change dex2oat callback to use Runnable::run

Addresses follow up review in https://r.android.com/2909917

Change-Id: Idc979c73b05e5dee53ef756b392c20131e2cdb4b
Test: presubmit
parent 3fe953d0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ import com.android.server.wm.ActivityMetricsLaunchObserver;
import com.android.server.wm.ActivityMetricsLaunchObserverRegistry;
import com.android.server.wm.ActivityTaskManagerInternal;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;

@@ -314,7 +313,7 @@ public final class ProfcollectForwardingService extends SystemService {
            Log.w(LOG_TAG, "Couldn't get ArtManagerLocal");
            return;
        }
        aml.setBatchDexoptStartCallback(ForkJoinPool.commonPool(),
        aml.setBatchDexoptStartCallback(Runnable::run,
                (snapshot, reason, defaultPackages, builder, passedSignal) -> {
                    traceOnDex2oatStart();
                });