From 238e9d493ff28f9da4326e8b3afe27b2b632998c Mon Sep 17 00:00:00 2001 From: Honsun Zhu Date: Fri, 15 Oct 2021 16:49:08 +0800 Subject: [PATCH] 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 --- src/runtime/runtime2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index b903cc8011..c47b43200f 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -209,6 +209,7 @@ type eface struct { data unsafe.Pointer } +//go:nosplit func efaceOf(ep *any) *eface { return (*eface)(unsafe.Pointer(ep)) }