]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: for tail calls in stubs, ensure args are alive
authorKeith Randall <khr@golang.org>
Thu, 9 Jun 2016 18:07:36 +0000 (11:07 -0700)
committerKeith Randall <khr@golang.org>
Thu, 9 Jun 2016 19:32:51 +0000 (19:32 +0000)
commite3f1c66f313a59888620c415163b93c12153574e
treea160258e30248113f265bcda9d4951cea4a2c858
parent1bdf1c3024d75a3c4913d031d55257b311f0133f
cmd/compile: for tail calls in stubs, ensure args are alive

The generated code for interface stubs sometimes just messes
with a few of the args and then tail-calls to the target routine.
The args that aren't explicitly modified appear to not be used.
But they are used, by the thing we're tail calling.

Fixes #16016

Change-Id: Ib9b3a8311bb714a201daee002885fcb59e0463fa
Reviewed-on: https://go-review.googlesource.com/23960
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/plive.go
test/fixedbugs/issue16016.go [new file with mode: 0644]