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.
On 2013/08/02 16:46:04, rsc wrote: > Please rename them to syscallpc and syscallsp. Done I've ...
11 years, 7 months ago
(2013-08-04 12:46:52 UTC)
#3
On 2013/08/02 16:46:04, rsc wrote:
> Please rename them to syscallpc and syscallsp.
Done
I've also merged the other CL that slightly refactors
entersyscall/entersyscallblock, as you asked.
PTAL
*** Submitted as https://code.google.com/p/go/source/detail?r=e911f94c4902 *** runtime: use gcpc/gcsp during traceback of goroutines in syscalls gcpc/gcsp ...
11 years, 7 months ago
(2013-08-05 18:56:17 UTC)
#5
*** Submitted as https://code.google.com/p/go/source/detail?r=e911f94c4902 ***
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://codereview.appspot.com/12250043
Issue 12250043: code review 12250043: runtime: use gcpc/gcsp during traceback of goroutines i...
(Closed)
Created 11 years, 7 months ago by dvyukov
Modified 11 years, 1 month ago
Reviewers:
Base URL:
Comments: 0