From f5becf4233bd12506cbfcb9cbc04b5968ac11ae0 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 3 Jun 2013 12:28:24 +0400 Subject: 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 --- src/pkg/runtime/panic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/panic.c') 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); } -- cgit v1.3