aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-08-02 13:03:14 -0700
committerKeith Randall <khr@golang.org>2013-08-02 13:03:14 -0700
commit9cd570680bd1d6ea23e4f5da1fe3a50c6927d6d5 (patch)
treeb8c604701f76eb63048e9011bf0e17aa5a27a5e5 /src/pkg/runtime/proc.c
parentb8c8cb85092aba7dda9b5f27b1a6c940aaf3c985 (diff)
downloadgo-9cd570680bd1d6ea23e4f5da1fe3a50c6927d6d5.tar.xz
runtime: reimplement reflect.call to not use stack splitting.
R=golang-dev, r, khr, rsc CC=golang-dev https://golang.org/cl/12053043
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index 79568503b7..52849809d0 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -1926,6 +1926,12 @@ runtime·badmcall2(void) // called from assembly
runtime·throw("runtime: mcall function returned");
}
+void
+runtime·badreflectcall(void) // called from assembly
+{
+ runtime·panicstring("runtime: arg size to reflect.call more than 1GB");
+}
+
static struct {
Lock;
void (*fn)(uintptr*, int32);