diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2017-02-15 18:43:34 -0800 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2017-02-16 22:42:36 +0000 |
| commit | 794f1ebff7aeb4085ce7059011330a5efd946156 (patch) | |
| tree | 6cd1a647f63541650e53c69b9e64da16ef0c648c /src/syscall/exec_linux.go | |
| parent | 211102c85f7c7c626853813567188379b5fd7292 (diff) | |
| download | go-794f1ebff7aeb4085ce7059011330a5efd946156.tar.xz | |
cmd/compile: simplify needwritebarrier
Currently, whether we need a write barrier is simply a property of the
pointer slot being written to.
The only optimization we currently apply using the value being written
is that pointers to stack variables can omit write barriers because
they're only written to stack slots... but we already omit write
barriers for all writes to the stack anyway.
Passes toolstash -cmp.
Change-Id: I7f16b71ff473899ed96706232d371d5b2b7ae789
Reviewed-on: https://go-review.googlesource.com/37109
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
