1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:24:40 -07:00

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
This commit is contained in:
Keith Randall 2013-08-05 17:53:08 -07:00
parent b1c4531813
commit 034d5fcc30
2 changed files with 1 additions and 2 deletions

View File

@ -151,7 +151,6 @@ func testCallbackCallers(t *testing.T) {
n := 0
name := []string{
"test.goCallback",
"runtime.call16",
"runtime.cgocallbackg1",
"runtime.cgocallbackg",
"runtime.cgocallback_gofunc",

View File

@ -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);