]> Cypherpunks repositories - gostls13.git/commit
runtime: fix crash trace on amd64
authorRuss Cox <rsc@golang.org>
Sat, 11 Sep 2010 04:26:56 +0000 (00:26 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 11 Sep 2010 04:26:56 +0000 (00:26 -0400)
commitbefecf6b595220f31d70815bee4067a0e260516d
treed8129add5ab7f85c7bbfed963537591cf5dc6ad2
parent0aa2317096fde91c51a279b885765b5e26359150
runtime: fix crash trace on amd64

g is not in r15 anymore.
now it's in a per-thread memory segment,
which is valid even inside a signal handler,
so we can just refer to g directly.

Fixes #1082.

R=r
CC=golang-dev
https://golang.org/cl/2149045
src/pkg/runtime/darwin/amd64/signal.c
src/pkg/runtime/freebsd/amd64/signal.c
src/pkg/runtime/linux/amd64/signal.c