Skip to content

Commit ed6520f

Browse files
committed
[5.5][Concurrency] Fix the call to swift_task_enqueueGlobal_hook.
We pass swift_task_enqueueGlobal as the original implementation, but that would recurse. We need to pass swift_task_enqueueGlobalImpl instead. rdar://78780136 (cherry picked from commit 70be680)
1 parent 913da06 commit ed6520f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/GlobalExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void swift_task_enqueueGlobalImpl(Job *job) {
336336

337337
void swift::swift_task_enqueueGlobal(Job *job) {
338338
if (swift_task_enqueueGlobal_hook)
339-
swift_task_enqueueGlobal_hook(job, swift_task_enqueueGlobal);
339+
swift_task_enqueueGlobal_hook(job, swift_task_enqueueGlobalImpl);
340340
else
341341
swift_task_enqueueGlobalImpl(job);
342342
}

0 commit comments

Comments
 (0)