]> Cypherpunks repositories - gostls13.git/commit
runtime: Restore scheduler stack position if cgo callback panics.
authorIan Lance Taylor <iant@golang.org>
Sat, 8 Jan 2011 18:22:37 +0000 (10:22 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 8 Jan 2011 18:22:37 +0000 (10:22 -0800)
commit2d393034290661f5e78cf9b481aa8255b39eb488
tree75bd8108bba27322f7eb97a2f8b4479f174208b7
parent66a45b486b21f367e506bc7ef1b995a7649ab899
runtime: Restore scheduler stack position if cgo callback panics.

If we don't do this, then when C code calls back to Go code
which panics, we lose space on the scheduler stack.  If that
happens a lot, eventually there is no space left on the
scheduler stack.

R=rsc
CC=golang-dev
https://golang.org/cl/3898042
src/pkg/runtime/proc.c