-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Cleanup windows abort_internal
#121856
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
Cleanup windows abort_internal
#121856
Conversation
rustbot has assigned @Mark-Simulacrum. Use r? to explicitly pick a reviewer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It seems that miri is very sensitive to std's abort function being exactly what it expects, So I've moved the miri implementation to a separate function and added a note about avoiding disturbing it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this touches the inline assembly options anyway, we might as well add a nostack
attribute so that LLVM doesn't think that it needs to adjust the stack pointer. But that's really nitpicky, you don't have to bother...
r=me otherwise
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3793e5b): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 648.592s -> 650.632s (0.31%) |
Wins and losses are noise @rustbot label: +perf-regression-triaged |
As the comments on the functions say, we define abort in both in panic_abort and in libstd. This PR makes the two implementation (mostly) the same.
Additionally it:
options(noreturn)
on the asm instead of usingcore::intrinsics::unreachable
.FAST_FAIL_FATAL_APP_EXIT
to our generated Windows API bindings instead of defining it manually (std only)