diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-05 23:33:50 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-05 23:33:50 +0400 |
| commit | f38ff9e5ea24d1ea27928cfdc35c4679abe4673f (patch) | |
| tree | 0d587f2450617c81dd323f60e789660b68e76a5a /src/pkg/runtime/runtime.h | |
| parent | 7963ba6a4a7a9ab701cfac0e4f006d0a59c1b65e (diff) | |
| download | go-f38ff9e5ea24d1ea27928cfdc35c4679abe4673f.tar.xz | |
undo CL 12250043 / e911f94c4902
Break all 386 builders.
««« original CL description
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
»»»
R=rsc
CC=golang-dev
https://golang.org/cl/12424045
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 951376a52f..cc38953135 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -253,10 +253,10 @@ struct G Defer* defer; Panic* panic; Gobuf sched; - uintptr syscallstack; // if status==Gsyscall, syscallstack = stackbase to use during gc - uintptr syscallguard; // if status==Gsyscall, syscallguard = stackguard to use during gc - uintptr syscallsp; // if status==Gsyscall, syscallsp = sched.sp to use during gc - uintptr syscallpc; // if status==Gsyscall, syscallpc = sched.pc to use during gc + uintptr gcstack; // if status==Gsyscall, gcstack = stackbase to use during gc + uintptr gcsp; // if status==Gsyscall, gcsp = sched.sp to use during gc + uintptr gcpc; // if status==Gsyscall, gcpc = sched.pc to use during gc + uintptr gcguard; // if status==Gsyscall, gcguard = stackguard to use during gc uintptr stackguard; // same as stackguard0, but not set to StackPreempt uintptr stack0; G* alllink; // on allg |
