1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:54:39 -07:00

runtime: fix traceback across morestack

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12287043
This commit is contained in:
Russ Cox 2013-08-01 18:51:55 -04:00
parent fc5a63066b
commit 13507e0697

View File

@ -204,6 +204,10 @@ TEXT runtime·morestack(SB),7,$-4-0
MOVW (g_sched+gobuf_sp)(g), SP
BL runtime·newstack(SB)
// Not reached, but make sure the return PC from the call to newstack
// is still in this function, and not the beginning of the next.
RET
// Called from reflection library. Mimics morestack,
// reuses stack growth code to create a frame
// with the desired args running the desired function.