]> Cypherpunks repositories - gostls13.git/commit
6l: correct logic for morestack choice
authorRuss Cox <rsc@golang.org>
Wed, 20 Oct 2010 19:16:39 +0000 (12:16 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 20 Oct 2010 19:16:39 +0000 (12:16 -0700)
commitc2b91d4889cf50abda0d55483f44f2d2cd5c5ad4
treea994d95a79a3c0ad89569888b40c69ab143c6d90
parent4ae93111749aed9b14e9926708dd08a099ab34ea
6l: correct logic for morestack choice

The frame that gets allocated is for both
the args and the autos.  If together they
exceed the default frame size, we need to
tell morestack about both so that it allocates
a large enough frame.

Sanity check stack pointer in morestack
to catch similar bugs.

R=ken2
CC=golang-dev
https://golang.org/cl/2609041
src/cmd/6l/pass.c
src/pkg/runtime/proc.c