]> Cypherpunks.ru repositories - gostls13.git/commit
reflect,runtime: assume register ABI with GOEXPERIMENT=regabiargs
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 15:02:11 +0000 (15:02 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 22:35:25 +0000 (22:35 +0000)
commit27d306281c54a89ff00e3dad6f4cea790a2f2f2d
tree881afd5999f56794089d663bcc783e403fa32ce4
parent51cd074c59c770484e7db4788d968c408a278607
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>
src/reflect/abi.go
src/reflect/regabiargs_off.go [new file with mode: 0644]
src/reflect/regabiargs_on.go [new file with mode: 0644]
src/runtime/regabiargs_off.go [new file with mode: 0644]
src/runtime/regabiargs_on.go [new file with mode: 0644]
src/runtime/stubs.go