Skip to content

[Concurrency] Downgrade reportUnexpectedExecutor to error on old SDKs by default #72610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Mar 27, 2024

We need to be more careful when upgrading the executor check to "default mode is crashing", and should only do so in the upcoming release.

This adds a runtime check that we'll replace with checking what version of the SDKs an app was linked against. If it is the release with Swift 6 (future), we'll make it crash by default, but by doing it dynamically like this -- old apps, linked against ols SDKs will be allowed to keep working, until they rebuild with a new SDK and get the new behavior.

This semi-undoes the flag swap from: 8787846
And prepares the "hook" we'll have to implement once the the releases are announced in the future.

Resolves rdar://125107864

@ktoso ktoso requested review from mikeash and al45tair as code owners March 27, 2024 03:47
@ktoso
Copy link
Contributor Author

ktoso commented Mar 27, 2024

@swift-ci please smoke test

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Mar 27, 2024
@ktoso ktoso requested review from xedin, hborla and tbkka March 27, 2024 04:11
@ktoso
Copy link
Contributor Author

ktoso commented Mar 27, 2024

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Mar 27, 2024

Will move this into the #71172 instead because they overlap quite a bit -- can't do checkIsolated without similar checks either as it would crash.

@ktoso ktoso closed this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant