Skip to content
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

Enable small_panic in release mode #553

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Enable small_panic in release mode #553

merged 1 commit into from
Jun 20, 2024

Conversation

alevy
Copy link
Member

@alevy alevy commented Jun 19, 2024

panic_handler/small_panic is significantly smaller than the current default panic_handler/debug_panic since it doesn't bother formatting a panic message, instead using the low-level-debugger and exiting.

However, it's not actually used anywhere (maybe downstream?)!

This PR uses small_panic in release mode and debug_panic in debug mode. There is a pretty substantial drop in code size for most examples.

@alevy alevy added this pull request to the merge queue Jun 20, 2024
Merged via the queue into master with commit f4bd533 Jun 20, 2024
3 checks passed
@alevy alevy deleted the small_panic_in_release branch June 20, 2024 11:51
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