From 1903ad71891eb0b7b79b83145bf16b4a85dead54 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 21 Feb 2013 17:01:13 -0500 Subject: cmd/gc, reflect, runtime: switch to indirect func value representation Step 1 of http://golang.org/s/go11func. R=golang-dev, r, daniel.morsing, remyoudompheng CC=golang-dev https://golang.org/cl/7393045 --- src/pkg/runtime/stack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pkg/runtime/stack.c') diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index ac00e53765..d1d5c8f3f9 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -273,7 +273,10 @@ runtime·newstack(void) label.sp = (uintptr)sp; label.pc = (byte*)runtime·lessstack; label.g = m->curg; - runtime·gogocall(&label, m->morepc); + if(reflectcall) + runtime·gogocallfn(&label, (FuncVal*)m->morepc); + else + runtime·gogocall(&label, m->morepc); *(int32*)345 = 123; // never return } -- cgit v1.3