runtime, reflect: rewrite Go to FFI type conversion in Go
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 Nov 2016 00:15:38 +0000 (00:15 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 Nov 2016 00:15:38 +0000 (00:15 +0000)
commit5302cd025063e00bde7d102284f638977dde5f27
tree67be8f93c3e7e9a2a592f5932622a54083146948
parentf97db488a6ad72106426990653fa397d690d1654
runtime, reflect: rewrite Go to FFI type conversion in Go

    As we move toward the Go 1.7 garbage collector, it's essential that all
    allocation of values that can contain Go pointers be done using the
    correct type descriptor.  That is simplest if we do all such allocation
    in Go code.  This rewrites the code that converts from a Go type to a
    libffi CIF into Go.

    Reviewed-on: https://go-review.googlesource.com/33353

From-SVN: r242578
14 files changed:
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/configure
libgo/configure.ac
libgo/go/reflect/makefunc.go
libgo/go/reflect/makefunc_ffi.go
libgo/go/reflect/makefunc_ffi_c.c
libgo/go/runtime/ffi.go [new file with mode: 0644]
libgo/mkrsysinfo.sh
libgo/runtime/go-ffi.c
libgo/runtime/go-ffi.h [deleted file]
libgo/runtime/go-reflect-call.c
libgo/sysinfo.c