Skip to content

[5.1] Fix a data race on _swiftEmptyArrayStorage reported by TSan #21627 #24078

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

Conversation

Catfish-Man
Copy link
Contributor

@Catfish-Man Catfish-Man commented Apr 16, 2019

Cherry picking to 5.1. May be too late, sorry about that if so!

Fixes rdar://problem/45738939

…pend(contentsOf) used to write a 0 into _buffer.count causing a race.

(cherry picked from commit b9b4c78)
@Catfish-Man Catfish-Man self-assigned this Apr 16, 2019
@Catfish-Man
Copy link
Contributor Author

@swift-ci please test and merge

2 similar comments
@Catfish-Man
Copy link
Contributor Author

@swift-ci please test and merge

@Catfish-Man
Copy link
Contributor Author

@swift-ci please test and merge

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd compnerd changed the title Fix a data race on _swiftEmptyArrayStorage reported by TSan #21627 [5.1] Fix a data race on _swiftEmptyArrayStorage reported by TSan #21627 Apr 18, 2019
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 17696b7

@Catfish-Man
Copy link
Contributor Author

PR testing should be fixed now

@Catfish-Man
Copy link
Contributor Author

@swift-ci please test Linux platform

@Catfish-Man Catfish-Man merged commit f8e4f27 into swiftlang:swift-5.1-branch Apr 18, 2019
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.

5 participants