From: Keith Randall Date: Tue, 6 Aug 2013 00:53:08 +0000 (-0700) Subject: runtime: Use old reflect.call implementation from cgo. X-Git-Tag: go1.2rc2~771 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=034d5fcc30ff97350d16df65d403cfcc8ac5d22b;p=gostls13.git runtime: Use old reflect.call implementation from cgo. Basically a partial rollback of 12053043 until I can figure out what is really going on. Fixes bug 6051. R=golang-dev CC=golang-dev https://golang.org/cl/12496043 --- diff --git a/misc/cgo/test/callback.go b/misc/cgo/test/callback.go index 467edfbae5..838105155a 100644 --- a/misc/cgo/test/callback.go +++ b/misc/cgo/test/callback.go @@ -151,7 +151,6 @@ func testCallbackCallers(t *testing.T) { n := 0 name := []string{ "test.goCallback", - "runtime.call16", "runtime.cgocallbackg1", "runtime.cgocallbackg", "runtime.cgocallback_gofunc", diff --git a/src/pkg/runtime/cgocall.c b/src/pkg/runtime/cgocall.c index 91a55131e6..a9daf80914 100644 --- a/src/pkg/runtime/cgocall.c +++ b/src/pkg/runtime/cgocall.c @@ -295,7 +295,7 @@ runtime·cgocallbackg1(void) // Invoke callback. cb = CBARGS; - reflect·call(cb->fn, cb->arg, cb->argsize); + runtime·newstackcall(cb->fn, cb->arg, cb->argsize); if(raceenabled && !m->racecall) runtime·racereleasemerge(&cgosync);