Skip to content

[5.6] fix implementation of isolation for static stored property initializer expressions #40692

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

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

kavon
Copy link
Member

@kavon kavon commented Dec 22, 2021

Some globals, like static stored properties, are lazily initialized.
For situations where we do a direct access to that property,
we will first call a function that tries to initialize the var if needed,
before returning the address of the global to perform the direct access.
In this specific case, we were not on the right actor when invoking
that function.

This is a cherry-pick of part 1 of 2 for PR #40652. This part is simply a fix and not a possible source break.

fixes rdar://83411416 and SR-15227

Some globals, like static stored properties, are lazily initialized.
For situations where we do a direct access to that property,
we will first call a function that tries to initialize the var if needed,
before returning the address of the global to perform the direct access.
In this specific case, we were not on the right actor when invoking
that function.

fixes rdar://83411416
@kavon
Copy link
Member Author

kavon commented Dec 22, 2021

@swift-ci please test

@kavon kavon requested a review from DougGregor December 22, 2021 22:11
@DougGregor DougGregor merged commit fba6dfd into swiftlang:release/5.6 Jan 5, 2022
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.

2 participants