diff options
author | Russ Cox <rsc@golang.org> | 2014-09-05 16:51:45 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-05 16:51:45 -0400 |
commit | a67917471ff28c5e4c37ba1eca98f0a6ded14c68 (patch) | |
tree | 9f648acbe29f95d7e5e147529054c3a0a850f4dd /misc | |
parent | afde047b8fdb004d86026261af9e8f11c9180a8a (diff) | |
download | go-a67917471ff28c5e4c37ba1eca98f0a6ded14c68.tar.gz |
runtime: use reflect.call during panic instead of newstackcall
newstackcall creates a new stack segment, and we want to
be able to throw away all that code.
LGTM=khr
R=khr, iant
CC=dvyukov, golang-codereviews, r
https://codereview.appspot.com/139270043
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/test/callback.go | 1 | ||||
-rw-r--r-- | misc/cgo/test/issue7695_test.go | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/misc/cgo/test/callback.go b/misc/cgo/test/callback.go index 98f653ef7..281e79494 100644 --- a/misc/cgo/test/callback.go +++ b/misc/cgo/test/callback.go @@ -153,6 +153,7 @@ func testCallbackCallers(t *testing.T) { n := 0 name := []string{ "test.goCallback", + "runtime.call16", "runtime.cgocallbackg1", "runtime.cgocallbackg", "runtime.cgocallback_gofunc", diff --git a/misc/cgo/test/issue7695_test.go b/misc/cgo/test/issue7695_test.go index 4bd6f8e73..de2fc03d4 100644 --- a/misc/cgo/test/issue7695_test.go +++ b/misc/cgo/test/issue7695_test.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build ignore +// This test depends on running C code on Go stacks. Not allowed anymore. + // Demo of deferred C function with untrue prototype // breaking stack copying. See golang.org/issue/7695. |