From 6732ad94c763be17dd5ae86f2dd51f1046026712 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 6 Apr 2013 20:18:15 -0700 Subject: [PATCH] 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 --- src/pkg/runtime/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; /* -- 2.50.0