Skip to content

[Runtime] Include size/alignment in allocation failure fatal error message. #80119

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
Mar 25, 2025

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Mar 19, 2025

It's hard to tell why a crash occurred with just "Could not allocate memory." Modify the message to include the size/alignment, which will help distinguish between an actual lack of memory and a request for an excessively large allocation.

While we're in there, add \n to a bunch of other fatal error helper functions that didn't have it.

…ssage.

It's hard to tell why a crash occurred with just "Could not allocate memory." Modify the message to include the size/alignment, which will help distinguish between an actual lack of memory and a request for an excessively large allocation.

While we're in there, add \n to a bunch of other fatal error helper functions that didn't have it.
@mikeash mikeash enabled auto-merge March 19, 2025 15:29
@mikeash
Copy link
Contributor Author

mikeash commented Mar 24, 2025

@swift-ci please test

@mikeash
Copy link
Contributor Author

mikeash commented Mar 25, 2025

@swift-ci please test macos platform

@mikeash mikeash merged commit 5f5d1cf into swiftlang:main Mar 25, 2025
5 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.

3 participants