]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: Use old reflect.call implementation from cgo.
authorKeith Randall <khr@golang.org>
Tue, 6 Aug 2013 00:53:08 +0000 (17:53 -0700)
committerKeith Randall <khr@golang.org>
Tue, 6 Aug 2013 00:53:08 +0000 (17:53 -0700)
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

misc/cgo/test/callback.go
src/pkg/runtime/cgocall.c

index 467edfbae546da3cb83f763e2ee755ccb9e490da..838105155a59772ea53f29c256cf0ad350be0ae9 100644 (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",
index 91a55131e6aa47a61648ac8d3e374ccc153f0522..a9daf80914845ee07b34c6f3f319ffee2b4043c9 100644 (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);