aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob/decoder.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-16 17:29:38 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-19 23:17:10 +0000
commit3711ea0b5d1bc381bda02ec3fe16369ed997eda6 (patch)
treed4abb93a3dbe09ccc5c4a4f79055ed4f76fd2142 /src/encoding/gob/decoder.go
parentb3a5640397e887514a860b9eb73e125c2b650f7b (diff)
downloadgo-3711ea0b5d1bc381bda02ec3fe16369ed997eda6.tar.xz
cmd/compile: do not clobber arguments for reflect.callReflect and callMethod's ABI wrappers
reflect.callReflect and reflect.callMethod are called from special functions makeFuncStub and methodValueCall. The runtime expects that it can find the first argument (ctxt) at 0(SP) in makeFuncStub and methodValueCall's frame. Normally callReflect and callMethod already do not modify the argument, and keep it alive. But the compiler-generated ABI wrappers don't do that. Special case the wrappers to not clobber its arguments. Change-Id: I1769f49b81c38eabe452d561001c418352814d86 Reviewed-on: https://go-review.googlesource.com/c/go/+/310889 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/encoding/gob/decoder.go')
0 files changed, 0 insertions, 0 deletions