1
0
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:
Honsun Zhu 2021-10-15 16:49:08 +08:00
parent db7183ccf9
commit 238e9d493f

View File

@ -209,6 +209,7 @@ type eface struct {
data unsafe.Pointer
}
//go:nosplit
func efaceOf(ep *any) *eface {
return (*eface)(unsafe.Pointer(ep))
}