runtime: Handle allocating memory in cgo/SWIG function.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 22:30:25 +0000 (22:30 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 22:30:25 +0000 (22:30 +0000)
commitb0c5dc1655bc88f34ecd1bf93ff297871b650392
tree6c5565907afcb57540cfa85b6b3702a3d51074b4
parentce4a94223ea08c13ba644b2f8c2dde8a2b1511fb
runtime: Handle allocating memory in cgo/SWIG function.

A function that returns an interface type and returns a value
that requires memory allocation will try to allocate while
appearing to be in a syscall.  This patch lets that work.

From-SVN: r201226
libgo/runtime/malloc.goc