]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: make CgoMal alloc field void*
authorIan Lance Taylor <iant@golang.org>
Sun, 7 Apr 2013 03:18:15 +0000 (20:18 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 7 Apr 2013 03:18:15 +0000 (20:18 -0700)
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

src/pkg/runtime/runtime.h

index ee82bedb7b4ee49b12387770ca493b2bf432b659..cb72b92d67d0afd5a1c8f151ef02b5362ad17826 100644 (file)
@@ -511,7 +511,7 @@ struct ParFor
 struct CgoMal
 {
        CgoMal  *next;
-       byte    *alloc;
+       void    *alloc;
 };
 
 /*