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

Commit 2999d0d3 authored by Wei Wang's avatar Wei Wang
Browse files

Fix android_os_Process_setThreadGroup

Bug: 139521784
Test: Boot
Change-Id: I7ddeee5b06f81bb72fef1f3556e5c3a332d4d13b
parent 472661aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint
        return;
    }

    int res = SetTaskProfiles(tid, {get_sched_policy_name((SchedPolicy)grp)}, true) ? 0 : -1;
    int res = SetTaskProfiles(tid, {get_sched_policy_profile_name((SchedPolicy)grp)}, true) ? 0 : -1;

    if (res != NO_ERROR) {
        signalExceptionForGroupError(env, -res, tid);