]> Cypherpunks repositories - gostls13.git/commit
runtime: grow stack more than 2x if the new frame is large
authorKeith Randall <khr@golang.org>
Fri, 27 Mar 2020 18:17:00 +0000 (11:17 -0700)
committerKeith Randall <khr@golang.org>
Thu, 7 May 2020 18:31:25 +0000 (18:31 +0000)
commitb1760f3a27ed9a0e99599bf028b2b48403f8c3fc
tree46be2f377f2455a620195111f428f3be5ae501ce
parent6ed4661807b219781d1aa452b7f210e21ad1974b
runtime: grow stack more than 2x if the new frame is large

We might as well grow the stack at least as large as we'll need for
the frame that is calling morestack. It doesn't help with the
lots-of-small-frames case, but it may help a bit with the
few-big-frames case.

Update #18138

Change-Id: I1f49c97706a70e20b30433cbec99a7901528ea52
Reviewed-on: https://go-review.googlesource.com/c/go/+/225800
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/stack.go