Skip to content

[5.3] Windows, remove obsolete TLS finalization #2917

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
Nov 13, 2020

Conversation

lxbndr
Copy link
Contributor

@lxbndr lxbndr commented Nov 4, 2020

Copied from #2902. The diff is exactly same. Considered safe and worth to port to 5.3.

Foundation uses Fls now. Fls provides automatic cleanup, and
manual finalization on DLL_THREAD_DETACH is not needed.
@lxbndr
Copy link
Contributor Author

lxbndr commented Nov 4, 2020

CC @compnerd @spevans

@MaxDesiatov
Copy link
Contributor

@swift-ci please test

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This really should have no impact, but makes the code clearer.

@lxbndr
Copy link
Contributor Author

lxbndr commented Nov 5, 2020

I believe it fixes an elusive crash. We had a stable reproduction rate "in vivo", as our code actively uses dispatch queues. But I could not reproduce it sample app, unfortunately.

@compnerd compnerd merged commit f069950 into swiftlang:release/5.3 Nov 13, 2020
@lxbndr lxbndr deleted the 5.3-tls-cleanup branch November 13, 2020 20:09
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