Skip to content

Swift: use hashing for lazy decl trap file names #12910

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 2 commits into from
Apr 25, 2023

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Apr 24, 2023

It turns out mangled names can sometimes be too long. While this code will eventually be replaced by our own mangling, we need to use hashing to cut down the names and avoid crashes right away.

Module and decl names are preserved in the trap file names for debuggability.

It turns out mangled names can sometimes be too long. While this code
will eventually be replaced by our own mangling, we need to use hashing
to cut down the names.

Module and decl names are preserved in the trap file names for
debuggability.
@redsun82 redsun82 requested a review from AlexDenisov April 24, 2023 12:38
@redsun82 redsun82 requested a review from a team as a code owner April 24, 2023 12:38
@github-actions github-actions bot added the Swift label Apr 24, 2023
@redsun82
Copy link
Contributor Author

As an example, here's the list of lazy_decls trap file names for the hello-world integration test run on Linux:
lazy_decl_traps.txt

AlexDenisov
AlexDenisov previously approved these changes Apr 24, 2023
@AlexDenisov AlexDenisov merged commit fcbd211 into main Apr 25, 2023
@AlexDenisov AlexDenisov deleted the redsun82/swift-hash-lazy-trap-names branch April 25, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants