Skip to content

Commit 70be680

Browse files
committed
[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
1 parent a2d5678 commit 70be680

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
@@ -337,7 +337,7 @@ static void swift_task_enqueueGlobalImpl(Job *job) {
337337

338338
void swift::swift_task_enqueueGlobal(Job *job) {
339339
if (swift_task_enqueueGlobal_hook)
340-
swift_task_enqueueGlobal_hook(job, swift_task_enqueueGlobal);
340+
swift_task_enqueueGlobal_hook(job, swift_task_enqueueGlobalImpl);
341341
else
342342
swift_task_enqueueGlobalImpl(job);
343343
}

0 commit comments

Comments
 (0)