Skip to content

Fix ownership rauw to not leave behind stale ownership fixup context #38864

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
Aug 17, 2021

Conversation

meg-gupta
Copy link
Contributor

Ownership rauw uses a shared ownership fixup context to maintain state. When ownership rauw fails, due to some invalid condition, we leave behind stale data in this shared ownership fixup context.
This stale context can indvertantly affect the next rauw on addresses.

In addition to setting the ownership fixup context to nullptr, we should also clear it so that it's internal data structures are
cleared.

Ownership rauw uses a shared ownership fixup context to maintain state.
When ownership rauw fails, due to some invalid condition, we leave
behind stale data in this shared ownership fixup context.
This stale context can indvertantly affect the next rauw on addresses.
In addition to setting the ownership fixup context to nullptr, we
should also clear it so that it's internal data structures are
cleared.
@meg-gupta meg-gupta requested review from gottesmm and atrick August 12, 2021 23:47
@meg-gupta
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

👍

@atrick atrick merged commit b5b6dc6 into swiftlang:main Aug 17, 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