]> Cypherpunks repositories - gostls13.git/commit
runtime: use gcpc/gcsp during traceback of goroutines in syscalls
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 5 Aug 2013 18:55:54 +0000 (22:55 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 5 Aug 2013 18:55:54 +0000 (22:55 +0400)
commitf73972fa333ad3291c9b7118cf7ca129a758cb66
tree2f5d34eeedf2b96892b6a259c5485101bda532fc
parent20a2b960898a37e646bf76dcf0e3fd067a387c5f
runtime: use gcpc/gcsp during traceback of goroutines in syscalls
gcpc/gcsp are used by GC in similar situation.
gcpc/gcsp are also more stable than gp->sched,
because gp->sched is mutated by entersyscall/exitsyscall
in morestack and mcall. So it has higher chances of being inconsistent.
Also, rename gcpc/gcsp to syscallpc/syscallsp.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12250043
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_x86.c