Skip to content

Commit 2d55dd3

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). (cherry picked from commit 743e56e)
1 parent e253b23 commit 2d55dd3

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
@@ -950,7 +950,7 @@ static void resumeTaskAfterContinuation(AsyncTask *task,
950950

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

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

0 commit comments

Comments
 (0)