-
Notifications
You must be signed in to change notification settings - Fork 429
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
Disable stack probes #363
Disable stack probes #363
Conversation
This comment has been minimized.
This comment has been minimized.
We do not support function-call stack probes, and LLVM inline asm stack probe is currently broken [1][2]. Switching target's `stack-probes` to "none" allows us to avoid broken codegen and the intrinsic call. We could switch the `stack-probes` property to `inline` if we want once the LLVM codegen issue is resolved. [1]: https://bugs.llvm.org/show_bug.cgi?id=50165 [2]: rust-lang/rust#84667 Signed-off-by: Gary Guo <[email protected]>
Review of
|
Is there an issue number tracking the |
define_panicking_intrinsics!("non-inline stack probes should not be used", { | ||
__rust_probestack, | ||
}); |
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.
Do we need to remove this? i.e. can we keep it as a safeguard?
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.
It's best to remove this so we know there're no calls generated by accident. Note that we will never need __rust_probestack
in the future -- once LLVM bug is fixed we'll switch to inline stack probes.
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.
Removing this ensures that non-inline stack probes are never generated.
Edit: race-condition :)
There does not seem to be a tracking issue for inline stack probes on Rust side. |
Updated #355 with the LLVM one then. |
We do not support function-call stack probes, and LLVM inline asm
stack probe is currently broken 1 2. Switching target's
stack-probes
to "none" allows us to avoid broken codegen and the intrinsic call.
We could switch the
stack-probes
property toinline
if we want oncethe LLVM codegen issue is resolved.