swift
e84682ed - [Concurrency] Fix escalation while enqueued test (#90627)

Commit
73 days ago
[Concurrency] Fix escalation while enqueued test (#90627) Some of the tests in test/Concurrency/async_task_priority.swift don't work without priority escalation being enabled. This causes them to fail when being built for certain targets. This PR adds the guard from test/Concurrency/priority_escalation_thread_qos.swift Radar-Id: rdar://182034655 (cherry picked from commit 7335d12d37df2178f7368f9691d0e16aa9c56fcf) 6.4.x adaptation: only the test guard is picked. - The stdlib/public/Concurrency/{Actor.cpp,TaskPrivate.h} hunks are dropped. They are type adaptations to the Task Stealers refactor on main; release/6.4.x has no ThreadPriorityManager, opaquePriority or getStealerExclusionValue, so there is nothing for them to apply to. - The new "Tasks can be escalated even if they are enqueued but not yet running" test (rdar://160967177) is dropped, as it exercises Task stealer behavior that does not exist on this branch. What remains is the fix for the observed failure: gating "Task escalation doesn't impact qos_class_self" on the presence of <dispatch/swift_concurrency_private.h>, which is absent from the XRSimulator SDK.
Author
Committer
Parents
Loading