]> Cypherpunks repositories - gostls13.git/commit
runtime, runtime/cgo: track memory allocated by non-Go code
authorIan Lance Taylor <iant@golang.org>
Sat, 10 Nov 2012 19:19:06 +0000 (11:19 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 10 Nov 2012 19:19:06 +0000 (11:19 -0800)
commite9a3087e290b52212af1ca2001ea9b24d8797fd0
tree00aa2dc3061a8c72c4d43f496ae922565cb9132d
parent5612edb13e5a772e79ade881038ee0760df70d8c
runtime, runtime/cgo: track memory allocated by non-Go code

Otherwise a poorly timed GC can collect the memory before it
is returned to the Go program.

R=golang-dev, dave, dvyukov, minux.ma
CC=golang-dev
https://golang.org/cl/6819119
src/pkg/runtime/cgo/callbacks.c
src/pkg/runtime/cgocall.c
src/pkg/runtime/runtime.h