1
0
mirror of https://github.com/golang/go synced 2024-10-05 08:21:22 -06:00
go/src/pkg/runtime/freebsd
Russ Cox 690291a2c0 runtime: pass to signal handler value of g at time of signal
The existing code assumed that signals only arrived
while executing on the goroutine stack (g == m->curg),
not while executing on the scheduler stack (g == m->g0).

Most of the signal handling trampolines correctly saved
and restored g already, but the sighandler C code did not
have access to it.

Some rewriting of assembly to make the various
implementations as similar as possible.

Will need to change Windows too but I don't
understand how sigtramp gets called there.

R=r
CC=golang-dev
https://golang.org/cl/4203042
2011-02-23 14:47:42 -05:00
..
386 runtime: pass to signal handler value of g at time of signal 2011-02-23 14:47:42 -05:00
amd64 runtime: pass to signal handler value of g at time of signal 2011-02-23 14:47:42 -05:00
defs.c runtime: add mmap of null page just in case 2010-09-28 20:30:01 -04:00
mem.c runtime: new allocation strategy for amd64 2011-02-09 14:38:33 -05:00
os.h runtime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almost 2010-11-04 14:00:19 -04:00
signals.h runtime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almost 2010-11-04 14:00:19 -04:00
thread.c runtime: revert 6974:1f3c3696babb 2011-01-12 11:48:15 +11:00