diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-06-03 12:28:24 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-06-03 12:28:24 +0400 |
| commit | f5becf4233bd12506cbfcb9cbc04b5968ac11ae0 (patch) | |
| tree | 8cd4b9fde8bb9ea0b9512b1482b35600c9e7a34c /src/pkg/runtime/panic.c | |
| parent | ae43ea432dae096add3bb02271fb143733ccd155 (diff) | |
| download | go-f5becf4233bd12506cbfcb9cbc04b5968ac11ae0.tar.xz | |
runtime: add stackguard0 to G
This is part of preemptive scheduler.
stackguard0 is checked in split stack checks and can be set to StackPreempt.
stackguard is not set to StackPreempt (holds the original value).
R=golang-dev, daniel.morsing, iant
CC=golang-dev
https://golang.org/cl/9875043
Diffstat (limited to 'src/pkg/runtime/panic.c')
| -rw-r--r-- | src/pkg/runtime/panic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c index ecce93ff16..18e4779540 100644 --- a/src/pkg/runtime/panic.c +++ b/src/pkg/runtime/panic.c @@ -298,6 +298,7 @@ runtime·unwindstack(G *gp, byte *sp) break; gp->stackbase = (uintptr)top->stackbase; gp->stackguard = (uintptr)top->stackguard; + gp->stackguard0 = gp->stackguard; if(top->free != 0) runtime·stackfree(stk, top->free); } |
