]> Cypherpunks repositories - gostls13.git/commit
reflect: declare slice as *[]unsafe.Pointer instead of *[]byte
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Thu, 27 Dec 2012 18:35:04 +0000 (02:35 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Thu, 27 Dec 2012 18:35:04 +0000 (02:35 +0800)
commit90f9beca15c951ef2cefa9942f87b71ae125ccd2
tree55991f80039a253b8c0bb8d90b8e9344316d99f9
parent5bcb9707b63c12bbd6ab6dd8f0913b2518b83531
reflect: declare slice as *[]unsafe.Pointer instead of *[]byte

The new garbage collector (CL 6114046) may find the fake *[]byte value
and interpret its contents as bytes rather than as potential pointers.
This may lead the garbage collector to free memory blocks that
shouldn't be freed.

R=dvyukov, rsc, dave, minux.ma, remyoudompheng, iant
CC=golang-dev
https://golang.org/cl/7000059
src/pkg/reflect/value.go