Skip to content

AST: Reimplement AvailabilityContext storage using TrailingObjects #79761

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

tshortli
Copy link
Contributor

@tshortli tshortli commented Mar 4, 2025

This makes more efficient use of the permanent memory allocated for AvailabilityContext representations and also fixes a leak that was introduced in #79718 where the small vector for unavailable domain storage was not being cleaned up on ASTContext deallocation.

Resolves rdar://145929932.

This makes more efficient use of the permanent memory allocated for
`AvailabilityContext` representations and also fixes a leak that was introduced
in swiftlang#79718 where the small vector for
unavailable domain storage was not being cleaned up on `ASTContext`
deallocation.

Resolves rdar://145929932.
@tshortli
Copy link
Contributor Author

tshortli commented Mar 4, 2025

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge March 4, 2025 02:30
@tshortli tshortli merged commit a7de6ec into swiftlang:main Mar 4, 2025
3 checks passed
@tshortli tshortli deleted the availability-context-trailing-objects branch March 4, 2025 15:06
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.

1 participant