diff options
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index c2edb40948..d868c596bf 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -4019,6 +4019,12 @@ func malg(stacksize int32) *g { // //go:nosplit func newproc(siz int32, fn *funcval) { + if experimentRegabiDefer && siz != 0 { + // TODO: When we commit to experimentRegabiDefer, + // rewrite newproc's comment, since it will no longer + // have a funny stack layout or need to be nosplit. + throw("go with non-empty frame") + } argp := add(unsafe.Pointer(&fn), sys.PtrSize) gp := getg() pc := getcallerpc() |
