diff options
author | Cherry Mui <cherryyz@google.com> | 2021-06-04 13:53:18 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-06-08 17:03:39 +0000 |
commit | a9de78ac88ff668bbe8c0dc5fdc9dc864ae60447 (patch) | |
tree | e6bd20b2e564e70c12e9c8785b7773ea85c9a828 /src/runtime/proc.go | |
parent | e58bddde706c8814f82ec4ef404fc7ff36d88469 (diff) | |
download | go-a9de78ac88ff668bbe8c0dc5fdc9dc864ae60447.tar.gz go-a9de78ac88ff668bbe8c0dc5fdc9dc864ae60447.zip |
[dev.typeparams] cmd/compile, runtime: always enable defer/go wrapping
Hardwire regabidefers to true. Remove it from GOEXPERIMENTs.
Fallback paths are not cleaned up in this CL. That will be done
in later CLs.
Change-Id: Iec1112a1e55d5f6ef70232a5ff6e702f649071c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/325913
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r-- | src/runtime/proc.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 24566e5efa..b93b337f19 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -7,7 +7,6 @@ package runtime import ( "internal/abi" "internal/cpu" - "internal/goexperiment" "runtime/internal/atomic" "runtime/internal/sys" "unsafe" @@ -4259,7 +4258,7 @@ func newproc(siz int32, fn *funcval) { // //go:systemstack func newproc1(fn *funcval, argp unsafe.Pointer, narg int32, callergp *g, callerpc uintptr) *g { - if goexperiment.RegabiDefer && narg != 0 { + if true && narg != 0 { // TODO: When we commit to GOEXPERIMENT=regabidefer, // rewrite the comments for newproc and newproc1. // newproc will no longer have a funny stack layout or |