@@ -1031,23 +1031,23 @@ static swift_task_escalateImpl(AsyncTask *task, JobPriority newPriority) {
1031
1031
// Task is not running, it's enqueued somewhere waiting to be run
1032
1032
//
1033
1033
// TODO (rokhinip): Add a stealer to escalate the thread request for
1034
- // the task. Still mark the task has having been escalated so that the
1035
- // thread will self override when it starts draining the task
1034
+ // the task. Still mark the task has having been escalated so that the
1035
+ // thread will self override when it starts draining the task
1036
1036
//
1037
1037
// TODO (rokhinip): Add a signpost to flag that this is a potential
1038
- // priority inversion
1038
+ // priority inversion
1039
1039
SWIFT_TASK_DEBUG_LOG (" [Override] Escalating %p which is enqueued" , task);
1040
1040
1041
- } else {
1042
- SWIFT_TASK_DEBUG_LOG (" [Override] Escalating %p which is suspended to %#x" , task, newPriority);
1043
- // We must have at least one record - the task dependency one.
1044
- assert (newStatus.getInnermostRecord () != NULL );
1045
1041
}
1046
1042
1047
1043
if (newStatus.getInnermostRecord () == NULL ) {
1048
1044
return newStatus.getStoredPriority ();
1049
1045
}
1050
1046
1047
+ SWIFT_TASK_DEBUG_LOG (" [Override] Escalating %p which is suspended to %#x" , task, newPriority);
1048
+ // We must have at least one record - the task dependency one.
1049
+ assert (newStatus.getInnermostRecord () != NULL );
1050
+
1051
1051
withStatusRecordLock (task, newStatus, [&](ActiveTaskStatus status) {
1052
1052
// We know that none of the escalation actions will recursively
1053
1053
// modify the task status record list by adding or removing task records
0 commit comments