Commit Graph

170632 Commits

Author SHA1 Message Date
Ben Langmuir
99daf886d5 Merge pull request #75594 from benlangmuir/script-load-foundation-early
[immediate] Load Foundation early enough for bridging
2024-08-02 00:36:14 -07:00
Ben Rimmington
28e1fdf919 [stdlib] Remove _FixedArray16 from GroupInfo.json (#75631) 2024-08-01 19:54:09 -07:00
Ben Langmuir
8a824d70a0 [immediate] Load Foundation early enough for bridging
Foundation needs to be loaded early in the process for Swift's runtime
to properly initialize bridging support; otherwise it may cause issues
like unrecognized selectors. When scripting, load Foundation early in
performFrontend before any swift code runs.

rdar://129528115
2024-08-01 15:02:13 -07:00
Konrad `ktoso` Malawski
9906199d8e [Concurrency] Harden task group test which is sensitive to timing (#75612) 2024-08-02 06:48:29 +09:00
Alexis Laferrière
3ea6e70e94 Merge pull request #75606 from xymus/disable-os-stdlib
Tests: Disable 2 tests on use_os_stdlib
2024-08-01 14:14:38 -07:00
Tim Kientzle
9debfbc08c Merge pull request #75607 from tbkka/tbkka-remotemirror-unsafecontinuation
[RemoteMirror] Handle UnsafeContinuation
2024-08-01 13:46:09 -07:00
Tim Kientzle
713aafe68f Merge pull request #72354 from tbkka/tbkka-progress-for-bridge-object-test
Add some progress info to make failures here easier to understand
2024-08-01 13:08:20 -07:00
eeckstein
926bd6cf80 Merge pull request #75615 from eeckstein/fix-atomic-effects
SIL: allow atomic operations in `@_noLocks` functions
2024-08-01 21:31:35 +02:00
Alex Lorenz
d3cfaa3788 Merge pull request #75549 from hyp/eng/buildps1-host-android-sdk-windows-foundation-macros
[build.ps1] add host SDK path when building foundation for Android on…
2024-08-01 11:30:45 -07:00
Eric Miotto
5c31c10dcf Merge pull request #75566 from edymtt/edymtt/promote-concurrency-stringprocessing-to-core-libraries
Promote _Concurrency and StringProcessing to core subset of the stdlib
2024-08-01 11:06:41 -07:00
Pavel Yaskevich
fd9a3c915b Merge pull request #75486 from xedin/fix-unsed-decl-in-generic-spec-diagnostic
[Diagnostics] Add a note to invalid generic function specialization d…
2024-08-01 10:08:43 -07:00
Saleem Abdulrasool
8d9c5e178c Merge pull request #75406 from z2oh/fix-sourcekitd-file-locks-windows
Fix sourcekitd persistent file-locks on Windows
2024-08-01 09:51:17 -07:00
Alex Hoppen
2a2dd735c1 Merge pull request #75582 from AppAppWorks/astgen-update-for-new-fixit-change-api
[ASTGen] Update for new FixIt.Change API in Swift-Syntax
2024-08-01 09:03:58 -07:00
Arnold Schwaighofer
2188ba04e0 Merge pull request #75595 from aschwaighofer/specialized_classes_ro_data_in_objc_clsrolist
IRGen: Also list specialized generic class' objective c ro data in the dedicated linker section
2024-08-01 08:59:46 -07:00
Tim Kientzle
fe82cde490 Use CHECK for general synchronization 2024-08-01 07:32:48 -07:00
Tim Kientzle
4bad739ad4 Remove FIXME since this is actually right! 2024-08-01 07:27:43 -07:00
Tim Kientzle
8935510bcc Do not test with back deployment since this is a new-ish feature area 2024-08-01 07:27:11 -07:00
Erik Eckstein
50e22f986c SIL: allow atomic operations in @_noLocks functions
https://github.com/swiftlang/swift/issues/74407
2024-08-01 13:38:39 +02:00
Erik Eckstein
e3de408716 Simplification: remove builtin "destroyArray" with trivial element types 2024-08-01 13:38:39 +02:00
Andrew Trick
23d1329f9d Merge pull request #75580 from atrick/fix-lifeutil-assert
Fix an assert in LifetimeDependenceUtils to allow all valid cases.
2024-08-01 02:27:06 -07:00
Konrad `ktoso` Malawski
4c3fa03588 [Distributed] Test for distributed protocols + method defaults (#75609) 2024-08-01 00:23:59 -07:00
Andrew Trick
3e98d2e232 Fix an assert in LifetimeDependenceUtils to allow all valid cases. 2024-07-31 22:58:39 -07:00
Tim Kientzle
71f010ead4 Merge pull request #75516 from tbkka/tbkka-new-actor-reflection-test
New reflect_Actor test
swift-DEVELOPMENT-SNAPSHOT-2024-08-01-a
2024-07-31 21:01:29 -07:00
Michael Gottesman
e945c55c97 Merge pull request #75605 from gottesmm/pr-d4066f062c015e630d51fe05140fe756391079a9
[region-isolation] Use a hard to use API correctly.
2024-07-31 20:03:01 -07:00
Tim Kientzle
9e1dcd6c9f [RemoteMirror] Handle UnsafeContinuation
UnsafeContinuations can be stored in variables or properties,
so it's important for RemoteMirror to be able to at least minimally
recognize them.

This just treats an UnsafeContinuation as a refcounted pointer.
Which might be "good enough" for now.

Working towards rdar://110351406
2024-07-31 18:15:27 -07:00
Tim Kientzle
725dc3c011 Merge pull request #75587 from tbkka/tbkka-remotemirror-generic-depth
[RemoteMirror] Fix generic depth calculation
2024-07-31 17:56:27 -07:00
Hamish Knight
79be21f4ae Merge pull request #75528 from hamishknight/foldable-tangent
[Sema] Fold SequenceExpr in pre-checking pre-walk
2024-08-01 01:48:51 +01:00
Alexis Laferrière
fe65a82790 Tests: Disable moveonly_swiftskell.swift when use_os_stdlib (rdar://132936383) 2024-07-31 17:14:45 -07:00
Alexis Laferrière
cd2dcca196 Tests: Disable ArrayBridge.swift.gyb when use_os_stdlib (rdar://132941962) 2024-07-31 17:13:36 -07:00
Michael Gottesman
7255281c1d [region-isolation] Use a hard to use API correctly.
Specifically, this API has some hard edges where instead of just returning an
invalid value to signal that we do not have self, we assert or return something
bogus. This commit just fixes our usage of that API to be correct.

rdar://132545626
2024-07-31 16:51:15 -07:00
Steven Wu
541ee12137 Merge pull request #75598 from cachemeifyoucan/eng/PR-127205953
[DependencyScanner] Use mutex to protect all accesses to contextCacheMap
2024-07-31 16:36:29 -07:00
Pavel Yaskevich
ceeb6ec23f Merge pull request #75526 from gregomni/specialize
[Sema] Improve diagnoses of generic specializations
2024-07-31 16:27:11 -07:00
Alexis Laferrière
4ce62af5a0 Merge pull request #75603 from xymus/partial-revert-assert
Revert one line from #75586
swift-DEVELOPMENT-SNAPSHOT-2024-07-31-a
2024-07-31 15:29:37 -07:00
Tim Kientzle
47de3339bb Only run this test on suitably new systems 2024-07-31 15:25:11 -07:00
Alexis Laferrière
f458c56143 Revert one line from "SILBuilder: use the new ASSERT macro in the SILBuilder"
From commit bf3b69bba8.

installedOverride refers to something protected behind an `#ifndef NDEBUG`.

rdar://132930970
2024-07-31 14:53:38 -07:00
Holly Borla
9c941920fa Merge pull request #75578 from hborla/correct-implicit-async-diagnostic
[Concurrency] Flip the implicitly async `select` in a concurrency error.
2024-07-31 14:33:50 -07:00
Pavel Yaskevich
ca0afe2aed Merge pull request #75592 from xedin/rdar-132715122
[Tests] NFC: Don't attempt to run inlinable init accessor tests on de…
2024-07-31 13:37:29 -07:00
Steven Wu
9967e58624 [DependencyScanner] Use mutex to protect all accesses to contextCacheMap
Rather than only protecting the insertion and non-const access to
`ContextSpecificCacheMap` in ScanningService, extend the mutex
protection to all accesses. Even a 'const' lookup in the cache map is
not thread safe because the `StringMap` could be in the process of being
rehashed.

rdar://127205953
2024-07-31 13:17:04 -07:00
Jeremy Schonfeld
f89db53698 Ensure Foundation tests don't run when passing --skip-foundation-tests (#75573) 2024-07-31 12:54:48 -07:00
Arnold Schwaighofer
4b0328f24f IRGen: Also list specialized generic class' objective c ro data in the dedicated linker section
List the emitted ro_data of specialized generic classes in the
__objc_clsrolist section.

rdar://132354480
2024-07-31 12:52:50 -07:00
Michael Gottesman
af8b19dfbd Merge pull request #75590 from gottesmm/pr-66aa73e45aa508bc763af6ccc128f36e93a9e144
[region-isolation] Fix handling of coroutine apply results.
2024-07-31 12:44:56 -07:00
Karoy Lorentey
68721a4a0f Merge pull request #75575 from lorentey/delete-fixedarray
[stdlib] Remove _FixedArray16
2024-07-31 10:24:30 -07:00
Alex Hoppen
1f4a7222d2 Merge pull request #75576 from ahoppen/interfacegen-semantic
[SourceKit] Run interface generation request on a deep stack
2024-07-31 10:23:39 -07:00
Holly Borla
6ef6b25a0b Merge pull request #75579 from hborla/delete-sema-sendable-checking
[Concurrency] Delete sendable checking subsumed by region isolation.
2024-07-31 10:20:16 -07:00
Pavel Yaskevich
5e0efb1a56 [Tests] NFC: Don't attempt to run inlinable init accessor tests on device or remotely
This test is using dylibs, which don't play way with remote/device CI.

Resolves: rdar://132715122
2024-07-31 10:13:22 -07:00
eeckstein
45ee3ee12a Merge pull request #75586 from eeckstein/use-assert-macro
SILBuilder: use the new ASSERT macro in the SILBuilder
2024-07-31 18:56:07 +02:00
Rintaro Ishizaki
fdc1d2f70a Merge pull request #75571 from rintaro/windows-clean
[Windows] Fix 'clean'
2024-07-31 09:55:09 -07:00
Michael Gottesman
541863dbc6 [region-isolation] Fix handling of coroutine apply results.
In this part of the code, we are attempting to merge all of the operands into
the same region and then assigning all non-Sendable results of the function to
that same region. The problem that was occuring here was a thinko due to the
control flow of the code here not separating nicely the case of whether or not
we had operands or not. Previously this did not matter, since we just used the
first result in such a case... but since we changed to assign to the first
operand element in some cases, it matters now. To fix this, I split the confused
logic into two different easy to follow control paths... one if we have operands
and one where we do not have an operand. In the case where we have a first
operand, we merge our elements into its region. If we do not have any operands,
then we just perform one large region assign fresh.

This was not exposed by code that used non-coroutines since in SIL only
coroutines today have multiple results.

rdar://132767643
2024-07-31 09:37:42 -07:00
Michael Gottesman
c1ddeb26c1 [gardening] Add some comments to SILIsolationInfo's header file. 2024-07-31 09:37:42 -07:00
Artem Chikin
bd4827f7a3 Merge pull request #75556 from artemcm/DisableScannerValidationNonCachingBuild
[Dependency Scanning] Disable validation of Swift dependency modules' existing pre-built candidate binary module files in the scanner, on a non-caching build.
2024-07-31 08:55:51 -07:00