]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: include callee args section when checking frame too large
authorKeith Randall <khr@google.com>
Tue, 29 May 2018 23:44:36 +0000 (16:44 -0700)
committerKeith Randall <khr@golang.org>
Sat, 2 Jun 2018 18:00:44 +0000 (18:00 +0000)
commit06b326054dc0cad03b7b848d8516a578dd8b559f
treec10b01fe2a4cafba467714254c641c666fdce37e
parent161874da2ab6d5372043a1f3938a81a19d1165ad
cmd/compile: include callee args section when checking frame too large

The stack frame includes the callee args section. At the point where
we were checking the frame size, that part of the frame had not been
computed yet. Move the check later so we can include the callee args size.

Fixes #20780
Update #25507

Change-Id: Iab97cb89b3a24f8ca19b9123ef2a111d6850c3fe
Reviewed-on: https://go-review.googlesource.com/115195
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/pgen.go
src/go/types/stdlib_test.go
test/fixedbugs/issue20780.go [new file with mode: 0644]