Loading cmds/installd/dexopt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ #include <log/log.h> // TODO: Move everything to base/logging. #include <openssl/sha.h> #include <private/android_filesystem_config.h> #include <processgroup/sched_policy.h> #include <processgroup/processgroup.h> #include <selinux/android.h> #include <server_configurable_flags/get_flags.h> #include <system/thread_defs.h> Loading Loading @@ -282,8 +282,8 @@ static bool ShouldUseSwapFileForDexopt() { static void SetDex2OatScheduling(bool set_to_bg) { if (set_to_bg) { if (set_sched_policy(0, SP_BACKGROUND) < 0) { PLOG(ERROR) << "set_sched_policy failed"; if (!SetTaskProfiles(0, {"Dex2OatBootComplete"})) { LOG(ERROR) << "Failed to set dex2oat task profile"; exit(DexoptReturnCodes::kSetSchedPolicy); } if (setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_BACKGROUND) < 0) { Loading Loading
cmds/installd/dexopt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ #include <log/log.h> // TODO: Move everything to base/logging. #include <openssl/sha.h> #include <private/android_filesystem_config.h> #include <processgroup/sched_policy.h> #include <processgroup/processgroup.h> #include <selinux/android.h> #include <server_configurable_flags/get_flags.h> #include <system/thread_defs.h> Loading Loading @@ -282,8 +282,8 @@ static bool ShouldUseSwapFileForDexopt() { static void SetDex2OatScheduling(bool set_to_bg) { if (set_to_bg) { if (set_sched_policy(0, SP_BACKGROUND) < 0) { PLOG(ERROR) << "set_sched_policy failed"; if (!SetTaskProfiles(0, {"Dex2OatBootComplete"})) { LOG(ERROR) << "Failed to set dex2oat task profile"; exit(DexoptReturnCodes::kSetSchedPolicy); } if (setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_BACKGROUND) < 0) { Loading