1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:50:21 -07:00

runtime: make CgoMal alloc field void*

This makes it an unsafe.Pointer in Go so the garbage collector
will treat it as a pointer to untyped data, not a pointer to
bytes.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/8286045
This commit is contained in:
Ian Lance Taylor 2013-04-06 20:18:15 -07:00
parent 58030c541b
commit 6732ad94c7

View File

@ -511,7 +511,7 @@ struct ParFor
struct CgoMal
{
CgoMal *next;
byte *alloc;
void *alloc;
};
/*