Commit Graph

29 Commits

Author SHA1 Message Date
Eric Miotto
eab65319f9 Distributed: do not import all of Darwin to implement locking facilities
At the same time, drop that dependency in the new build system, so that
we don't add an additional linkage for Darwin platforms compared to what
we are doing in the current build system.

Addresses rdar://158314427
2025-08-14 08:51:36 -07:00
Allan Shortlidge
008efc432f stdlib: Fix missing unsafe operators in more places.
Add `unsafe` where it is still missing. I missed these in previous passes due
to conditional compilation.
2025-06-22 18:46:57 -07:00
Saleem Abdulrasool
c17e67e1a9 stdlib: handle unsafe annotations in additional places
This applies more annotations in the `INTERNAL_CHECKS_ENABLED` disabled
paths, Windows, 32-bit, and non-ObjC paths. Interestingly enough, there
are a couple of compiler intrinsics which are also uncovered.
2025-06-18 09:46:17 -07:00
Allan Shortlidge
dbd3d40c07 stdlib: Address StrictMemorySafety warnings in KeyPath related code. 2025-03-31 16:45:08 -07:00
Allan Shortlidge
0c69e2db07 Distributed: Add visionOS to Apple platform conditionals. 2025-03-28 12:33:40 -07:00
Allan Shortlidge
322daab362 Distributed: Add unsafe keyword to uses of pthreads. 2025-03-28 12:33:40 -07:00
Doug Gregor
d9b5a4621f Enable strict memory safety in the Distributed module 2025-02-26 14:28:26 -08:00
Alex Lorenz
57b89d5303 [android] add an android NDK Swift overlay module, and use it instead of Glibc 2024-05-28 12:57:38 -07:00
Max Desiatov
21a2b78801 stdlib/benchmark: add canImport(Musl) where needed (#67120)
This allows compiling stdlib and benchmarks when targeting musl instead of Glibc.
2023-07-05 19:55:08 +01:00
Konrad `ktoso` Malawski
48c6f59186 [Distributed] LocalDAS cannot gain constraint on resolve method (#63321) 2023-02-01 13:56:48 +09:00
Konrad `ktoso` Malawski
a2879246ad [Distributed] LocalDAS cannot gain this constraint, even though the DAS protocol has it (#62572) 2022-12-15 07:00:45 +09:00
Max Desiatov
ffc6152f68 [Distributed] fix deprecation warning in LocalTesting (#61415) 2022-10-24 20:19:41 +09:00
Konrad `ktoso` Malawski
1675669e43 Revert "[Distributed] workaround for LocalTestingDAS crashes;"
This reverts commit bcd0f64e91.
2022-05-08 19:37:24 +09:00
Konrad `ktoso` Malawski
1e489d6c0b [Distributed] Force the order of properties in AST 2022-05-08 18:20:50 +09:00
Konrad `ktoso` Malawski
bcd0f64e91 [Distributed] workaround for LocalTestingDAS crashes;
This happens to work, but is not a real fix; we are not handling well
types declared in a library evolution enabled library, which this DAS
is. Without this, at runtime, we crash in LocalTestingDAS using actor
initializers
2022-05-07 07:28:55 +09:00
Konrad `ktoso` Malawski
79ad9278b2 [Distributed] Retain adhoc decodeNextArgument in distributed thunk 2022-04-18 16:53:10 -07:00
Konrad `ktoso` Malawski
8d3e7d91c0 [Distributed] ResultHandler.onReturn must be ad-hoc because SerializationRequirement (#41916)
* [Distributed] Invoke handler.onReturn ad hoc via ast synthesized func

* reformat and cleanup

* remove unused var
2022-03-24 21:44:37 +09:00
Konrad `ktoso` Malawski
5a5d1ba2e6 [Distributed] Implement RemoteCallArgument 2022-03-17 22:55:09 +09:00
Konrad `ktoso` Malawski
8a1c513993 add test and availability annotations 2022-03-15 16:42:58 -07:00
Yim Lee
b001d5bc59 swift-syntax-test bug fixed; remove workaround 2022-03-15 12:34:28 -07:00
Yim Lee
143914a4e7 Use os_unfair_lock on Apple platforms 2022-03-15 12:34:28 -07:00
Yim Lee
2adcd724cb Make thread safe 2022-03-15 12:34:28 -07:00
Yim Lee
a5adf2640b Workaround swift-syntax-test bug 2022-03-15 12:34:28 -07:00
Yim Lee
c5254bb427 Add @available 2022-03-15 12:34:28 -07:00
Yim Lee
2e5d4b64e6 Fix build errors 2022-03-15 12:34:28 -07:00
Yim Lee
1dd0604cf5 Don't print 2022-03-15 12:34:28 -07:00
Yim Lee
290506d006 Add LocalTestingActorAddress 2022-03-15 12:34:28 -07:00
Yim Lee
97da20585e Fix build errors 2022-03-15 12:34:28 -07:00
Yim Lee
bb9014017a Offer LocalTestingDistributedActorSystem
Add local-only actor system `LocalTestingDistributedActorSystem` to make code and tutorial development easier.

rdar://89580224
2022-03-15 12:34:28 -07:00