]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, runtime: mark R1 as clobbered for write barrier call
authorCherry Mui <cherryyz@google.com>
Sat, 13 Nov 2021 00:53:28 +0000 (19:53 -0500)
committerCherry Mui <cherryyz@google.com>
Mon, 15 Nov 2021 15:42:24 +0000 (15:42 +0000)
commitce4a2755956a42aa3211c121139a52c9a97a9aa0
treee44a3c0bbcfa3fa67e168960afabbfe07651a7c6
parent5337e53dfa3f5fde73b8f505ec3a91c628e8f648
cmd/compile, runtime: mark R1 as clobbered for write barrier call

If the call to gcWriteBarrier is via PLT, the PLT stub will
clobber R1. Mark R1 clobbered.

For #49386.

Change-Id: I72df5bb3b8d10381fec5c567b15749aaf7d2ad70
Reviewed-on: https://go-review.googlesource.com/c/go/+/363698
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>
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go
src/runtime/asm_s390x.s