mirror of
https://github.com/golang/go
synced 2024-11-22 05:44:41 -07:00
runtime: fix goroutine stack accounting
Fixes #6166. Fixes #6168. R=golang-dev, bradfitz, remyoudompheng CC=golang-dev https://golang.org/cl/12927045
This commit is contained in:
parent
29794b77dd
commit
187b9c695f
@ -1676,7 +1676,7 @@ runtime·malg(int32 stacksize)
|
||||
stk = g->param;
|
||||
g->param = nil;
|
||||
}
|
||||
g->stacksize = StackSystem + stacksize;
|
||||
newg->stacksize = StackSystem + stacksize;
|
||||
newg->stack0 = (uintptr)stk;
|
||||
newg->stackguard = (uintptr)stk + StackGuard;
|
||||
newg->stackguard0 = newg->stackguard;
|
||||
|
Loading…
Reference in New Issue
Block a user