diff options
author | Cherry Mui <cherryyz@google.com> | 2021-06-07 18:18:00 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-06-08 22:09:16 +0000 |
commit | 74b0b2772ab361884c0e00caf16aa158a7b51e36 (patch) | |
tree | a13236445dab41655f5a404bef71363a9a340148 /src/runtime/runtime2.go | |
parent | b80a4c56f015ed51a94da6bd7bcf5bf4b0b08a27 (diff) | |
download | go-74b0b2772ab361884c0e00caf16aa158a7b51e36.tar.gz go-74b0b2772ab361884c0e00caf16aa158a7b51e36.zip |
[dev.typeparams] cmd/compile, runtime: remove _defer.siz field
As deferred function now always has zero arguments, _defer.siz is
always 0 and can be removed.
Change-Id: Ibb89f65b2f9d2ba4aeabe50438cc3d4b6a88320b
Reviewed-on: https://go-review.googlesource.com/c/go/+/325921
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>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r-- | src/runtime/runtime2.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 8b2998f29a..cf4b0bff43 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -940,14 +940,13 @@ func extendRandom(r []byte, n int) { // A _defer holds an entry on the list of deferred calls. // If you add a field here, add code to clear it in freedefer and deferProcStack -// This struct must match the code in cmd/compile/internal/gc/reflect.go:deferstruct -// and cmd/compile/internal/gc/ssa.go:(*state).call. +// This struct must match the code in cmd/compile/internal/ssagen/ssa.go:deferstruct +// and cmd/compile/internal/ssagen/ssa.go:(*state).call. // Some defers will be allocated on the stack and some on the heap. // All defers are logically part of the stack, so write barriers to // initialize them are not required. All defers must be manually scanned, // and for heap defers, marked. type _defer struct { - siz int32 // includes both arguments and results started bool heap bool // openDefer indicates that this _defer is for a frame with open-coded |