Commit Graph

6 Commits

Author SHA1 Message Date
Eric Miotto
90ccd30335 [Concurrency] prevent two tests from running on OSes without ...
...runtime support

Addresses rdar://159026098
2025-08-29 15:36:09 -07:00
Allan Shortlidge
c02fc4724d Tests: Remove -disable-availability-checking from many Concurrency tests.
Instead, use the `%target-swift-5.1-abi-triple` substitution to compile the tests
for deployment to the minimum OS versions required for use of _Concurrency APIs.
2024-10-18 16:21:51 -07:00
Alexis Laferrière
841740e7ab Tests: XFAIL a few tests on freestanding
rdar://121121793
2024-03-11 13:29:49 -07:00
Holly Borla
26621b804c [Concurrency] Enable optional isolated parameters. 2024-02-16 16:28:45 -08:00
Holly Borla
f2b088518c [Concurrency] Implement more precise actor isolation for isolated argument
values.

Teach ActorIsolation that a `nil` isolated argument is statically nonisolated,
and a reference to GlobalActor.shared statically has global actor isolation.

This change also models arbitrary actor instance isolation using VarDecls
when possible, which allows comparing two ActorIsolation values that may
represent different actor instances. Previously, ActorIsolation was
modeled only by storing the nominal actor type and the parameter index,
so the actor isolation value for two different actors was considered
to be equal. Now, the nominal actor type is only used for isolated `self`
in cases where there is no implicit self parameter decl, such as for
stored properties.
2024-01-24 20:24:34 -08:00
Holly Borla
74d7a255c8 [Concurrency] Add more tests for optional isolated parameters. 2024-01-10 07:17:55 -08:00