mirror of
https://github.com/golang/go
synced 2024-11-21 22:24:40 -07:00
runtime: add missing //go:nosplit for efaceOf
This fix prevents additional stack checking code from being generated on func efaceOf to avoid unexpected growth of stack in child process. Fixes #48967
This commit is contained in:
parent
db7183ccf9
commit
238e9d493f
@ -209,6 +209,7 @@ type eface struct {
|
||||
data unsafe.Pointer
|
||||
}
|
||||
|
||||
//go:nosplit
|
||||
func efaceOf(ep *any) *eface {
|
||||
return (*eface)(unsafe.Pointer(ep))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user