]> Cypherpunks repositories - gostls13.git/commit
runtime: fix runtime.sigreturn_tramp for NetBSD/ARM
authorShenghou Ma <minux.ma@gmail.com>
Tue, 2 Jul 2013 16:33:38 +0000 (00:33 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 2 Jul 2013 16:33:38 +0000 (00:33 +0800)
commite55517259217b29383d1a77e3c70e5cd19fa778b
tree4f7c0a259099f1856b412b5b01940b39145af944
parent7cfa8310c75bfe8534a61f0f64116cb508d6f10d
runtime: fix runtime.sigreturn_tramp for NetBSD/ARM
using m->tls[0] to save ucontext pointer is not re-entry safe, and
the old code didn't set it before the early return when signal is
received on non-Go threads.

so misc/cgo/test used to hang when testing issue 5337.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/10076045
src/pkg/runtime/sys_netbsd_arm.s