]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't clobber dead slots in runtime.wbBufFlush
authorCherry Zhang <cherryyz@google.com>
Wed, 29 Aug 2018 16:09:34 +0000 (12:09 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 30 Aug 2018 18:27:20 +0000 (18:27 +0000)
commit360771e422ff0e586963e1dc0818c427b5444379
tree6a4689c2033c55c6d055dd71c092c79128543f53
parentc8545722a105f4a21583aeee00adcbd01436b98b
cmd/compile: don't clobber dead slots in runtime.wbBufFlush

runtime.wbBufFlush must not modify its arguments, because the
argument slots are also used as spill slots in runtime.gcWriteBarrier.
So, GOEXPERIMENT=clobberdead must not clobber them.

Updates #27326.

Change-Id: Id02bb22a45201eecee748d89e7bdb3df7e4940e4
Reviewed-on: https://go-review.googlesource.com/131957
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/plive.go