]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: update builtin writeBarrier to match runtime
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Feb 2017 23:57:06 +0000 (15:57 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 22 Feb 2017 01:32:31 +0000 (01:32 +0000)
commitdb6e27c38d20cdd6af205bbf99c1b1d3327e6c6f
tree1bf48ee4f07f5101d00627cf1b065802276c14ac
parent7603aa7907fa92336fd9f7702b709e559ee0191b
cmd/compile: update builtin writeBarrier to match runtime

The definition of writeBarrier in the runtime was changed in CL 22855
to include padding. Update the definition built in to the compiler to match.
This doesn't affect the generated code, as the compiler sets the type
to use anyhow, but having them be different seems clearly wrong.

Change-Id: I8eac05bf70a424a0b2338ba5e9e41af231316de0
Reviewed-on: https://go-review.googlesource.com/37377
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/builtin.go
src/cmd/compile/internal/gc/builtin/runtime.go