]> Cypherpunks repositories - gostls13.git/commit
runtime: jump to badmcall instead of calling it.
authorKeith Randall <khr@golang.org>
Thu, 29 Aug 2013 22:53:34 +0000 (15:53 -0700)
committerKeith Randall <khr@golang.org>
Thu, 29 Aug 2013 22:53:34 +0000 (15:53 -0700)
commit32b770b2c05d69c41f0ab6719dc028cf4c79e334
tree8b817260c14abd5682a6fd6b65d971c9a8fdf97a
parent90351506d47dad652d9ee8cea56ffb5c50e0e953
runtime: jump to badmcall instead of calling it.
This replaces the mcall frame with the badmcall frame instead of
leaving the mcall frame on the stack and adding the badmcall frame.
Because mcall is no longer on the stack, traceback will now report what
called mcall, which is what we would like to see in this situation.

R=golang-dev, cshapiro
CC=golang-dev
https://golang.org/cl/13012044
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/proc.c