mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: do not shrink stacks GOCOPYSTACK=0
LGTM=rsc R=golang-codereviews CC=golang-codereviews, khr, rsc https://golang.org/cl/76070043
This commit is contained in:
parent
22aa54965e
commit
b8d40172ce
1 changed files with 2 additions and 0 deletions
|
|
@ -776,6 +776,8 @@ runtime·shrinkstack(G *gp)
|
|||
uintptr used, oldsize, newsize;
|
||||
MSpan *span;
|
||||
|
||||
if(!runtime·copystack)
|
||||
return;
|
||||
oldstk = (byte*)gp->stackguard - StackGuard;
|
||||
oldbase = (byte*)gp->stackbase + sizeof(Stktop);
|
||||
oldsize = oldbase - oldstk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue