From a67917471ff28c5e4c37ba1eca98f0a6ded14c68 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 5 Sep 2014 16:51:45 -0400 Subject: 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 --- misc/cgo/test/callback.go | 1 + misc/cgo/test/issue7695_test.go | 3 +++ 2 files changed, 4 insertions(+) (limited to 'misc') 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. -- cgit v1.2.1