]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: args no longer live until end-of-function
authorKeith Randall <khr@golang.org>
Wed, 31 Aug 2016 22:17:02 +0000 (15:17 -0700)
committerKeith Randall <khr@golang.org>
Mon, 19 Sep 2016 16:54:35 +0000 (16:54 +0000)
commitca4089ad62b806db7d3f32335d3f20865a75edcd
tree1ad59322d137643bd45decd92cc63017f650a906
parentfaf611a07a7630a075fba3a555db7831e002122a
cmd/compile: args no longer live until end-of-function

We're dropping this behavior in favor of runtime.KeepAlive.
Implement runtime.KeepAlive as an intrinsic.

Update #15843

Change-Id: Ib60225bd30d6770ece1c3c7d1339a06aa25b1cbc
Reviewed-on: https://go-review.googlesource.com/28310
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/syntax.go
test/fixedbugs/issue15277.go
test/fixedbugs/issue15747.go
test/live.go
test/uintptrescapes2.go