Skip to content

[Runtime] Fix premature snapshot destruction in StableAddressConcurrentReadableHashMap::find. #35346

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 12, 2021

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Jan 11, 2021

Mark the relevant snapshot methods as ref-qualified (adding a & after the parameter list) so the compiler will enforce this for us and forbid calling them on temporaries.

Cherry-pick of #35345 to 5.4.

rdar://72997638

…ntReadableHashMap::find.

Mark the relevant snapshot methods as ref-qualified (adding a & after the parameter list) so the compiler will enforce this for us and forbid calling them on temporaries.

rdar://72997638
@mikeash mikeash requested a review from a team as a code owner January 11, 2021 16:05
@mikeash
Copy link
Contributor Author

mikeash commented Jan 11, 2021

@swift-ci please test

@mikeash mikeash merged commit a372878 into swiftlang:release/5.4 Jan 12, 2021
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