-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[IRGen] Distributed: Destroy loaded arguments after the call #65874
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
@swift-ci please test |
@ktoso I added IRGen test because I couldn't figure out why deinit is not printed in lit environment. |
Looks like Linux doesn't like parameters with archetypes, although it works just fine on macOS and simulators, here is the assert it's crashing with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks -- I'll see if I can figure out what linux doesn't like there
@ktoso I can XFAIL these tests on Linux and land this if you'd like? |
Maybe that's a good idea to ensure we're on time in apple platform releases and continue fixing on Linux.
|
Arguments that have been loaded due to underlying method conversion have to be destroyed after the call otherwise they are going to leak. Resolves: swiftlang#65853 Resolves: rdar://109207043
@swift-ci please test Linux platform |
@swift-ci please test |
Thanks a lot LGTM! |
I prepared a cherry pick over here #65941 |
Arguments that have been loaded due to underlying method conversion
have to be destroyed after the call otherwise they are going to leak.
Resolves: #65853
Resolves: rdar://109207043