Skip to content

🍒 [SE-0412] changelog note about strict concurrency for global variables #70863

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

Conversation

sophiapoirier
Copy link
Contributor

No description provided.

@sophiapoirier sophiapoirier requested a review from hborla January 11, 2024 23:23
@sophiapoirier sophiapoirier requested a review from a team as a code owner January 11, 2024 23:23
@sophiapoirier sophiapoirier force-pushed the global-variable-strict-concurrency-changelog-5.10 branch from ef1c709 to 2957b1e Compare January 12, 2024 00:11
@@ -5,6 +5,16 @@

## Swift 5.10

* [SE-0412][]:

Under strict concurrency checking, every global or static variable must be either isolated to a global actor or be both immutable and of `Sendable` type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show an example of some code that previously could exhibit data races at runtime that is now diagnosed under the proposal?

@sophiapoirier sophiapoirier force-pushed the global-variable-strict-concurrency-changelog-5.10 branch from 2957b1e to 4ef9e50 Compare January 12, 2024 20:04
@sophiapoirier sophiapoirier requested a review from hborla January 13, 2024 01:43
@benrimmington
Copy link
Contributor

The changelog item is added under Swift 5.10 here, but under Swift 5.11 on the main branch.

In both pull requests, a reference is missing (at the end of the changelog):

[SE-0412]: <https://github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md>

@sophiapoirier sophiapoirier force-pushed the global-variable-strict-concurrency-changelog-5.10 branch from 4ef9e50 to 666a70d Compare January 13, 2024 18:25
@sophiapoirier
Copy link
Contributor Author

@swift-ci please test

@sophiapoirier
Copy link
Contributor Author

The changelog item is added under Swift 5.10 here, but under Swift 5.11 on the main branch.

Ah good point, I modeled the same as was done with SE-0411 without much thinking about it. I have now on main also moved SE-0411 under 5.10 (@hborla I hope you agree that is the correct change).

In both pull requests, a reference is missing (at the end of the changelog):

[SE-0412]: <https://github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md>

Thanks and fixed now.

@hborla
Copy link
Member

hborla commented Jan 13, 2024

I have now on main also moved SE-0411 under 5.10 (@hborla I hope you agree that is the correct change).

Yes I agree, thank you! At the time when I landed SE-0411 on main, it was not yet on 5.10, so the main release note became incorrect after I cherry picked the change.

@sophiapoirier sophiapoirier changed the title [SE-0412] changelog note about strict concurrency for global variables 🍒 [SE-0412] changelog note about strict concurrency for global variables Jan 16, 2024
@sophiapoirier sophiapoirier merged commit 40d7a1f into swiftlang:release/5.10 Jan 17, 2024
@sophiapoirier sophiapoirier deleted the global-variable-strict-concurrency-changelog-5.10 branch January 17, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants