@@ -233,7 +233,7 @@ static bool withStatusRecordLock(AsyncTask *task, ActiveTaskStatus status,
233233
234234 status = newStatus;
235235
236- status.traceStatusChanged (task);
236+ status.traceStatusChanged (task, false );
237237 worker.flagQueueIsPublished (lockingRecord);
238238 installedLockRecord = true ;
239239
@@ -268,7 +268,7 @@ static bool withStatusRecordLock(AsyncTask *task, ActiveTaskStatus status,
268268 if (task->_private ()._status ().compare_exchange_weak (status, newStatus,
269269 /* success*/ std::memory_order_release,
270270 /* failure*/ std::memory_order_relaxed)) {
271- newStatus.traceStatusChanged (task);
271+ newStatus.traceStatusChanged (task, false );
272272 break ;
273273 }
274274 }
@@ -322,7 +322,7 @@ bool swift::addStatusRecord(AsyncTask *task, TaskStatusRecord *newRecord,
322322 if (task->_private ()._status ().compare_exchange_weak (oldStatus, newStatus,
323323 /* success*/ std::memory_order_release,
324324 /* failure*/ std::memory_order_relaxed)) {
325- newStatus.traceStatusChanged (task);
325+ newStatus.traceStatusChanged (task, false );
326326 return true ;
327327 } else {
328328 // Retry
@@ -404,7 +404,7 @@ void swift::removeStatusRecord(AsyncTask *task, TaskStatusRecord *record,
404404 if (task->_private ()._status ().compare_exchange_weak (oldStatus, newStatus,
405405 /* success*/ std::memory_order_relaxed,
406406 /* failure*/ std::memory_order_relaxed)) {
407- newStatus.traceStatusChanged (task);
407+ newStatus.traceStatusChanged (task, false );
408408 return ;
409409 }
410410 }
@@ -436,7 +436,7 @@ void swift::removeStatusRecord(AsyncTask *task, TaskStatusRecord *record,
436436 if (task->_private ()._status ().compare_exchange_weak (oldStatus, newStatus,
437437 /* success*/ std::memory_order_relaxed,
438438 /* failure*/ std::memory_order_relaxed)) {
439- newStatus.traceStatusChanged (task);
439+ newStatus.traceStatusChanged (task, false );
440440 return ;
441441 }
442442 // Restart the loop again - someone else modified status concurrently
@@ -494,7 +494,7 @@ void swift::removeStatusRecordWhere(
494494 if (task->_private ()._status ().compare_exchange_weak (oldStatus, newStatus,
495495 /* success*/ std::memory_order_relaxed,
496496 /* failure*/ std::memory_order_relaxed)) {
497- newStatus.traceStatusChanged (task);
497+ newStatus.traceStatusChanged (task, false );
498498 return ;
499499 }
500500 }
@@ -904,7 +904,7 @@ static void swift_task_cancelImpl(AsyncTask *task) {
904904 }
905905 }
906906
907- newStatus.traceStatusChanged (task);
907+ newStatus.traceStatusChanged (task, false );
908908 if (newStatus.getInnermostRecord () == NULL ) {
909909 // No records, nothing to propagate
910910 return ;
0 commit comments