From: Ian Lance Taylor Date: Sun, 7 Apr 2013 03:18:15 +0000 (-0700) Subject: runtime: make CgoMal alloc field void* X-Git-Tag: go1.1rc2~157 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6732ad94c763be17dd5ae86f2dd51f1046026712;p=gostls13.git 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 --- diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index ee82bedb7b..cb72b92d67 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -511,7 +511,7 @@ struct ParFor struct CgoMal { CgoMal *next; - byte *alloc; + void *alloc; }; /*