mirror of
https://github.com/golang/go
synced 2024-11-20 00:04:43 -07:00
runtime: disable pointer scan optimization
* broken by reflect, gob TBR=r https://golang.org/cl/166077
This commit is contained in:
parent
44c1eb6bed
commit
ed6fd1bcbe
@ -21,7 +21,9 @@ runtime·makeslice(SliceType *t, uint32 nel, uint32 cap, Slice ret)
|
||||
ret.len = nel;
|
||||
ret.cap = cap;
|
||||
|
||||
if(t->elem->kind&KindNoPointers)
|
||||
// TODO(rsc): Disabled because reflect and gob cast []byte
|
||||
// to data structures with pointers.
|
||||
if(0 && (t->elem->kind&KindNoPointers))
|
||||
ret.array = mallocgc(size, RefNoPointers, 1);
|
||||
else
|
||||
ret.array = mal(size);
|
||||
|
Loading…
Reference in New Issue
Block a user