From 6a2b0c0b6d527d45860ec6c0d860b6aebfedea2e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 15 Apr 2015 15:00:42 -0400 Subject: runtime: delete cgo_allocate This memory is untyped and can't be used anymore. The next version of SWIG won't need it. Change-Id: I592b287c5f5186975ee09a9b28d8efe3b57134e7 Reviewed-on: https://go-review.googlesource.com/8956 Reviewed-by: Ian Lance Taylor --- src/runtime/runtime2.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/runtime/runtime2.go') diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index cdbaebcc09..609c7cf6f6 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -283,7 +283,6 @@ type m struct { fastrand uint32 ncgocall uint64 // number of cgo calls in total ncgo int32 // number of cgo calls currently in progress - cgomal *cgomal park note alllink *m // on allm schedlink *m @@ -485,13 +484,6 @@ type lfnode struct { pushcnt uintptr } -// Track memory allocated by code not written in Go during a cgo call, -// so that the garbage collector can see them. -type cgomal struct { - next *cgomal - alloc unsafe.Pointer -} - // Indicates to write barrier and sychronization task to preform. const ( _GCoff = iota // GC not running, write barrier disabled -- cgit v1.3-5-g9baa