]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark live heap-allocated pparamout vars as needzero
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Jul 2016 22:44:12 +0000 (15:44 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 2 Jul 2016 00:40:40 +0000 (00:40 +0000)
commit519b469795287dc81ab3b994f8809f61a0c802da
treee5d7228a850f9d4d01da70d5f700d0720ff41994
parent575a87166291e321745041944321002b3c0b72be
cmd/compile: mark live heap-allocated pparamout vars as needzero

If we don't mark them as needzero, we have a live pointer variable
containing possible garbage, which will baffle the GC.

Fixes #16249.

Change-Id: I7c423ceaca199ddd46fc2c23e5965e7973f07584
Reviewed-on: https://go-review.googlesource.com/24715
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/plive.go
test/fixedbugs/issue16249.go [new file with mode: 0644]