-
Notifications
You must be signed in to change notification settings - Fork 147
Remove Allocations from Panic Handler #818
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
jsturtevant
merged 29 commits into
hyperlight-dev:main
from
adamperlin:adamperlin/panic-remove-allocations
Sep 10, 2025
+97
−7
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3ebb69a
Update cargo hash in flake.nix
adamperlin 7ab4735
Remove allocations in panic handler by formatting panic message
adamperlin 65d1676
Clear buffer before recursive panics
adamperlin 6a3b887
Update cargoHash in flake.nix
adamperlin b7d9e40
Remove unused imports
adamperlin 33450d3
Add copyright header to fixed_buf.rrs
adamperlin f96c81e
Call abort_with_code_and_message directly in case of format failure i…
adamperlin 6754a7e
Update src/hyperlight_host/tests/integration_test.rs
adamperlin 4b13017
Update src/tests/rust_guests/simpleguest/src/main.rs
adamperlin abe4d0f
Make FixedBuf take ownership of underlying byte slice
adamperlin a5ba136
Apply cargo fmt
adamperlin e3cdbc7
Remove unused import
adamperlin afb1ee5
1. Add vec allocation after alloc::alloc failure to ensure panic in
adamperlin fe3eb06
Use heapless crate instead of custom fixed string buffer
adamperlin 51269c7
Downgrade heapless to 0.8.0 to fix cargo crash
adamperlin 246518c
apply cargo fmt
adamperlin c58668d
Remove whitespace in panic handler and rename test function in
adamperlin 1df1be6
Write null terminator as part of initial panic message format
adamperlin 43e5480
Stack allocate panic message buffer to avoid use of mutex on static
adamperlin f75d9fc
Merge remote-tracking branch 'hl-origin/main' into adamperlin/panic-r…
adamperlin cf5efdb
Increase panic buffer size and add description to format error message
adamperlin e9f5ace
Create an fmt::Write implementation that writes formatted string to p…
adamperlin 12f46ba
Remove heapless dependency
adamperlin 1732dce
Merge remote-tracking branch 'hl-origin/main' into adamperlin/panic-r…
adamperlin 92b1ca7
fmt-apply
adamperlin b894870
Remove unnecessary unsafe in write_abort
adamperlin 16697ed
Merge remote-tracking branch 'hl-origin/main' into adamperlin/panic-r…
adamperlin 4230484
Merge branch 'main' into adamperlin/panic-remove-allocations
jsturtevant 4844ee3
Update src/hyperlight_guest/src/exit.rs
jsturtevant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.