commit | 3f7dcb98df3ce1d4e02d0072fd21e70dc08351db | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Sun Jun 09 12:13:01 2019 -0400 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jun 10 20:34:42 2019 +0000 |
tree | fffc697b521f40031c471904fc33d5cb4dda65d4 | |
parent | a32739aadf0c7a65fcd5d5b6d0a0d206bff24a4f [diff] |
compiler: use gcWriteBarrier for pointer-shaped struct/array If a struct/array is pointer-shaped (i.e. having a single field that is pointer-shaped), we can use gcWriteBarrier instead of typedmemmove for the write barrier. Change-Id: Ic782ed35d8bf8df23e6c5487a78f83c420ff0659 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181539 Reviewed-by: Ian Lance Taylor <iant@golang.org>