Skip to content

[lldb] Retire the SwiftASTContextReader lock manager. #9613

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

adrian-prantl
Copy link

depends on #9612

Now that all scratch contexts are using precise per-CU compiler
invocations, the infrastructure for the per-module fallback scratch
context is no longer needed, since it is actually less precise than
the "normal" contexts. This patch removes the notion of a fallback
SwiftASTContext entirely.
This mechanism was put into place to deal with SwiftASTContexts being
torn down and replaced. While that may still happen, we no have a much
better solution for the problem of dangling type references:
CompilerType now holds a weak_ptr to the type system so it's safe to
destroy a type system.
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 94d9cd1 into swiftlang:stable/20240723 Nov 18, 2024
2 of 3 checks passed
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