Commit b8d40172 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: do not shrink stacks GOCOPYSTACK=0

LGTM=rsc
R=golang-codereviews
CC=golang-codereviews, khr, rsc
https://golang.org/cl/76070043
parent 22aa5496
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment