diff options
author | Austin Clements <austin@google.com> | 2017-11-15 14:54:24 -0800 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2018-02-13 16:34:16 +0000 |
commit | 24dd83d7eb0f08ea5cf541ead3f2b36448468bfa (patch) | |
tree | 717aca732ca5bb0c54939a782d9f60b2990e197b /src/cmd/compile/internal/ssa/config.go | |
parent | 252f1170e5f13d9b12ec3a117ca2bb2241f74c08 (diff) | |
download | go-24dd83d7eb0f08ea5cf541ead3f2b36448468bfa.tar.gz go-24dd83d7eb0f08ea5cf541ead3f2b36448468bfa.zip |
runtime: buffered write barrier for amd64p32
Updates #22460.
Change-Id: I6656d478625e5e54aa2eaa38d99dfb0f71ea1fdd
Reviewed-on: https://go-review.googlesource.com/92697
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/config.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/config.go b/src/cmd/compile/internal/ssa/config.go index a4f4d7edfc..725cdcd9a4 100644 --- a/src/cmd/compile/internal/ssa/config.go +++ b/src/cmd/compile/internal/ssa/config.go @@ -298,6 +298,9 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize bool) *Config // Returns clobber BP on nacl/386, so the write // barrier does. opcodeTable[Op386LoweredWB].reg.clobbers |= 1 << 5 // BP + + // ... and SI on nacl/amd64. + opcodeTable[OpAMD64LoweredWB].reg.clobbers |= 1 << 6 // SI } if ctxt.Flag_shared { |