From 9cd570680bd1d6ea23e4f5da1fe3a50c6927d6d5 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 2 Aug 2013 13:03:14 -0700 Subject: runtime: reimplement reflect.call to not use stack splitting. R=golang-dev, r, khr, rsc CC=golang-dev https://golang.org/cl/12053043 --- src/pkg/runtime/panic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/panic.c') diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c index 5692c537a0..36a3c41ba7 100644 --- a/src/pkg/runtime/panic.c +++ b/src/pkg/runtime/panic.c @@ -241,10 +241,10 @@ runtime·panic(Eface e) break; // take defer off list in case of recursive panic popdefer(); - g->ispanic = true; // rock for newstack, where reflect.call ends up + g->ispanic = true; // rock for newstack, where reflect.newstackcall ends up argp = d->argp; pc = d->pc; - reflect·call(d->fn, (byte*)d->args, d->siz); + runtime·newstackcall(d->fn, (byte*)d->args, d->siz); freedefer(d); if(p->recovered) { g->panic = p->link; -- cgit v1.3-5-g9baa