]> Cypherpunks repositories - gostls13.git/commit
reflect: eliminate write barrier for copying result in callReflect
authorCherry Zhang <cherryyz@google.com>
Fri, 1 Feb 2019 01:29:21 +0000 (20:29 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 1 Feb 2019 19:23:02 +0000 (19:23 +0000)
commit7e987b7b332fb21b56418351ce942d892f07481b
tree972f6d4a9110f2c30f068430a7648ea6117e0791
parent03a9f5a192149dc6f443eb0e1cee48cb4dd7e26f
reflect: eliminate write barrier for copying result in callReflect

We are copying the results to uninitialized stack space. Write
barrier is not needed.

Fixes #30041.

Change-Id: Ia91d74dbafd96dc2bd92de0cb479808991dda03e
Reviewed-on: https://go-review.googlesource.com/c/160737
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/reflect/value.go
test/fixedbugs/issue30041.go [new file with mode: 0644]