go/src/reflect
Matthew Dempsky 5eec0a91ea reflect: fix unsafe conversions reported by -d=checkptr
The code for generating gcdata was (technically) unsafe. It was also
rather repetitive. This CL refactors it a bit and abstracts use of
gcdata into a helper gcSlice method.

Updates #34972.

Change-Id: Ie86d7822eafe263f1d3d150eedf0ec66be1ec85d
Reviewed-on: https://go-review.googlesource.com/c/go/+/202582
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-10-22 18:09:15 +00:00
..
all_test.go all: remove nacl (part 3, more amd64p32) 2019-10-10 22:38:38 +00:00
asm_386.s
asm_amd64.s
asm_arm.s
asm_arm64.s
asm_mips64x.s
asm_mipsx.s
asm_ppc64x.s
asm_s390x.s
asm_wasm.s
deepequal.go reflect: fix panic in DeepEqual when checking a cycle 2019-09-11 00:56:01 +00:00
example_test.go
export_test.go reflect: fix unsafe conversions reported by -d=checkptr 2019-10-22 18:09:15 +00:00
makefunc.go
set_test.go
swapper.go
tostring_test.go
type.go reflect: fix unsafe conversions reported by -d=checkptr 2019-10-22 18:09:15 +00:00
value.go cmd/compile: add -d=checkptr to validate unsafe.Pointer rules 2019-10-17 00:40:21 +00:00