Skip to content

[lldb/Platform] Synchronize access to SDK String Map. … #1147

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

No description provided.

Nothing guarantees that the objects in the StringMap remains at the same
address when the StringMap grows. Therefore we shouldn't return a
reference into the StringMap but return a copy of the string instead.

(cherry picked from commit b14c37a)
The SwiftASTContext queries this function in parallel and requires
synchronization.

(cherry picked from commit 75c3d6f)
The FileSpec constructor takes a StringRef so there's no point in going
through a C string.

(cherry picked from commit 6e69338)
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl requested a review from fredriss April 29, 2020 02:35
@adrian-prantl adrian-prantl merged commit 2ccfae8 into swiftlang:apple/stable/20200108 Apr 29, 2020
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