mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When using the new custom default executors, sometimes we end up taking a long time to do a task switch. This is happening because the path the new code takes sometimes results in a concrete pointer to the default global executor being in the executor tracking information in `swift_task_switch()`, and if we try to switch to a `nil` task executor (which _also_ means the default global executor), we aren’t spotting that and we’re taking the slow path. Essentially, we want to take the fast path in cases where we switch from `nil` to the concrete default global executor and vice-versa. rdar://156701386
1.5 KiB
1.5 KiB