Skip to content

[lldb] Acquire the map lock after deriving the lookup key #9636

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
Nov 20, 2024

Conversation

adrian-prantl
Copy link

The computation of the key may itself does DWARF lookups which may acquire additional locks through callbacks into TypeSystem.

rdar://139841554

The computation of the key may itself does DWARF lookups which may
acquire additional locks through callbacks into TypeSystem.

rdar://139841554
@adrian-prantl
Copy link
Author

@swift-ci test

Copy link

@jimingham jimingham left a comment

Choose a reason for hiding this comment

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

LGTM. IIUC you would be holding the lock over the call DeriveKeyFor because you wanted that method not to remove information about the SC from the SwiftASTContextMap. That seems like a very odd thing for DeriveKeyFor(SC) to do, so holding the lock while calling it should not be necessary.

@adrian-prantl adrian-prantl merged commit 34aedfb into swiftlang:stable/20240723 Nov 20, 2024
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