Skip to content

[SourceKit] Run SwiftParser on a deep stack for the related identifiers request #75490

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
Jul 29, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 25, 2024

We ran SwiftParser in handlePrimaryAST for related identifiers. That function is called on a dispatch queue with reduced stack size and could cause the parser to stack overflow if the program is very nested.

Run handlePrimaryAST on a deep stack for this request to fix the issue.

rdar://129960285

…rs request

We ran SwiftParser in `handlePrimaryAST` for related identifiers. That function is called on a dispatch queue with reduced stack size and could cause the parser to stack overflow if the program is very nested.

Run `handlePrimaryAST` on a deep stack for this request to fix the issue.

rdar://129960285
@ahoppen
Copy link
Member Author

ahoppen commented Jul 25, 2024

@swift-ci Please smoke test

@ahoppen ahoppen merged commit c5e201d into swiftlang:main Jul 29, 2024
3 checks passed
@ahoppen ahoppen deleted the swiftparser-on-deep-stack branch July 29, 2024 22:52
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