]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile, runtime: make room for rangefunc defers
authorRuss Cox <rsc@golang.org>
Fri, 30 Jun 2023 20:18:44 +0000 (16:18 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 16 Aug 2023 16:20:06 +0000 (16:20 +0000)
commit390763aed84189cb360e7ceb94aef56125fb140d
tree67a8bf4e5b118b7cac05abfd8069d16c9d7da137
parentade5a6232fd8f8a63549adf6cb6362fe6908e1f0
cmd/compile, runtime: make room for rangefunc defers

This is subtle and the compiler and runtime be in sync.
It is easier to develop the rest of the changes (especially when using
toolstash save/restore) if this change is separated out and done first.

Preparation for proposal #61405. The actual logic in the
compiler will be guarded by a GOEXPERIMENT, but it is
easier not to have GOEXPERIMENT-specific data structures
in the runtime, so just make the field always.

Change-Id: I7ec7049b99ae98bf0db365d42966baeec56e3774
Reviewed-on: https://go-review.googlesource.com/c/go/+/510539
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ssagen/ssa.go
src/runtime/runtime2.go