Skip to content

[5.5][Reflection] Fix iterateAsyncTaskAllocations. #38205

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

mikeash
Copy link
Contributor

@mikeash mikeash commented Jul 1, 2021

Cherry-pick #38203 to 5.5.

Fix the declaration of AsyncTask and add a test for iterateAsyncTaskAllocations. Reflection's declaration of AsyncTask had fallen out of sync with the real thing. The test that was supposed to catch this was never actually committed, oops.

rdar://80035307

@mikeash mikeash requested review from DougGregor, al45tair and tbkka July 1, 2021 20:12
@mikeash mikeash requested a review from a team as a code owner July 1, 2021 20:12
@mikeash
Copy link
Contributor Author

mikeash commented Jul 1, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - fe1f0d2285fca8d892df11094a1f01ca95e22d4d

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2021

Build failed
Swift Test OS X Platform
Git Sha - fe1f0d2285fca8d892df11094a1f01ca95e22d4d

@mikeash mikeash force-pushed the fix-iterate-async-task-allocations-5.5 branch from fe1f0d2 to 20bdcee Compare July 2, 2021 13:59
@mikeash
Copy link
Contributor Author

mikeash commented Jul 2, 2021

@swift-ci please test

@mikeash mikeash force-pushed the fix-iterate-async-task-allocations-5.5 branch from 20bdcee to 6c7a409 Compare July 2, 2021 17:58
@mikeash
Copy link
Contributor Author

mikeash commented Jul 2, 2021

@swift-ci please test

Copy link
Member

@kavon kavon left a comment

Choose a reason for hiding this comment

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

👍🏼 LGTM. Just a minor comment that I don't think is important for the 5.5 branch.

Fix the declaration of AsyncTask and add a test for iterateAsyncTaskAllocations. Reflection's declaration of AsyncTask had fallen out of sync with the real thing. The test that was supposed to catch this was never actually committed, oops.

Add a swift_reflection_libraryVersion variable to Remote Mirror to indicate the presence of this fix. In the future, the value can be incremented to signal the presence of other changes that can't otherwise be detected.

rdar://80035307
(cherry picked from commit c0e6e1d)
@mikeash mikeash force-pushed the fix-iterate-async-task-allocations-5.5 branch from 6c7a409 to 735138d Compare July 2, 2021 21:35
@mikeash
Copy link
Contributor Author

mikeash commented Jul 2, 2021

@swift-ci please test

@mikeash mikeash merged commit 1a9334f into swiftlang:release/5.5 Jul 3, 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.

4 participants