Skip to content

Commit 743e56e

Browse files
author
Julian Lettner
committed
Synchronize on Job address
Make sure to synchronize on Job address (AsyncTasks are Jobs, but not all Jobs are AsyncTasks).
1 parent 9726681 commit 743e56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ static void resumeTaskAfterContinuation(AsyncTask *task,
948948

949949
// Make sure TSan knows that the resume call happens-before the task
950950
// restarting.
951-
_swift_tsan_release(task);
951+
_swift_tsan_release(static_cast<Job *>(task));
952952

953953
// The status should be either Pending or Awaited. If it's Awaited,
954954
// which is probably the most likely option, then we should immediately

0 commit comments

Comments
 (0)