]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: large ptr literals must escape
authorKeith Randall <khr@golang.org>
Wed, 18 May 2016 20:04:00 +0000 (13:04 -0700)
committerKeith Randall <khr@golang.org>
Thu, 19 May 2016 15:12:01 +0000 (15:12 +0000)
commitd603c27c6b462f044a7079ce5113d90bb3ca4814
treea7a3c8873c98e1da87f28ba394f2705fd19fda82
parent1ab9428eec6cd1595de571aac4c093645a6629d0
cmd/compile: large ptr literals must escape

They get rewritten to NEWs, and they must be marked as escaping
so walk doesn't try to allocate them back onto the stack.

Fixes #15733

Change-Id: I433033e737c3de51a9e83a5a273168dbc9110b74
Reviewed-on: https://go-review.googlesource.com/23223
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/esc.go
test/fixedbugs/issue15733.go [new file with mode: 0644]