-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/compile: remove stack check for leaf routines #18269
Comments
#13379 (automatic nosplit) is related to this. Are you sure 386 is affected? I thought cmd/internal/obj/x86 automatically marked functions with small stack frames as nosplit. |
386 looks affected to me:
|
This issue is definitely related to #13379, not sure if it is a dup or not. |
Ah yes, the relevant x86 code only automatically applies nosplit when the pointer size is 64-bits. // TODO(rsc): Remove 'p.Mode == 64 &&'.
if p.Mode == 64 && autoffset < obj.StackSmall && p.From3Offset()&obj.NOSPLIT == 0 { go/src/cmd/internal/obj/x86/obj6.go Line 673 in 3a067cc
|
I'm going to close this issue. We do remove the stack check for leaf routines on amd64. |
There's no need for a stack check for this function.
386 and arm64 emit a stack check anyway. Those should be eliminated.
See #8474
The text was updated successfully, but these errors were encountered: