diff options
author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-04-01 15:02:11 +0000 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2021-04-01 22:35:25 +0000 |
commit | 27d306281c54a89ff00e3dad6f4cea790a2f2f2d (patch) | |
tree | 881afd5999f56794089d663bcc783e403fa32ce4 /src/runtime/stubs.go | |
parent | 51cd074c59c770484e7db4788d968c408a278607 (diff) | |
download | go-27d306281c54a89ff00e3dad6f4cea790a2f2f2d.tar.gz go-27d306281c54a89ff00e3dad6f4cea790a2f2f2d.zip |
reflect,runtime: assume register ABI with GOEXPERIMENT=regabiargs
This change causes finalizers, reflect calls, and Windows syscall
callbacks to assume the register ABI when GOEXPERIMENT=regabiargs is
set. That is, when all Go functions are using the new ABI by default,
these features should assume the new ABI too.
For #40724.
Change-Id: Ie4ee66b8085b692e1ff675f01134c9a4703ae1b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/306571
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stubs.go')
-rw-r--r-- | src/runtime/stubs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stubs.go b/src/runtime/stubs.go index a2e04a64a5..e2d4f0da3b 100644 --- a/src/runtime/stubs.go +++ b/src/runtime/stubs.go @@ -423,4 +423,4 @@ func sigpanic0() // everywhere. // // Protected by finlock. -var intArgRegs = 0 // abi.IntArgRegs +var intArgRegs = abi.IntArgRegs * experimentRegabiArgs |