Skip to content

[lldb] Guard SetDescriptorFinderAndClearOnExit against recursion #8674

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

augusto2112
Copy link

If a function in ReflectionContext.cpp sets the descriptor finder and calls another one that does the same, when the second function finishes the descriptor finder will be cleared. Fix this by keeping a stack of descriptor finders.

rdar://122586257

@augusto2112 augusto2112 requested a review from adrian-prantl May 1, 2024 21:44
@augusto2112
Copy link
Author

@swift-ci test

If a function in ReflectionContext.cpp sets the descriptor finder and
calls another one that does the same, when the second function finishes
the descriptor finder will be cleared. Fix this by keeping a stack of
descriptor finders.

rdar://122586257
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test windows

@adrian-prantl adrian-prantl merged commit 3580278 into swiftlang:swift/release/6.0 May 4, 2024
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