]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.7] cmd/compile: escape analysis needs to run "flood" to fixed...
authorDavid Chase <drchase@google.com>
Sat, 8 Oct 2016 20:45:58 +0000 (16:45 -0400)
committerChris Broadfoot <cbro@golang.org>
Mon, 17 Oct 2016 20:25:07 +0000 (20:25 +0000)
commit2287d95e9b130821b61c34afb79d8541268acd9b
tree1ae0ea4687f3c85e70940e73a0a91ba4b5f3b478
parenta2f37b7fe130e1a5da78b605f4191547e9868944
[release-branch.go1.7] cmd/compile: escape analysis needs to run "flood" to fixed point

In some cases the members of the root set from which flood
runs themselves escape, without their referents being also
tagged as escaping.  Fix this by reflooding from those roots
whose escape increases, and also enhance the "leak" test to
include reachability from a heap-escaped root.

Fixes #17318.

Change-Id: Ied1e75cee17ede8ca72a8b9302ce8201641ec593
Reviewed-on: https://go-review.googlesource.com/30693
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-on: https://go-review.googlesource.com/31290
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/esc.go
test/fixedbugs/issue17318.go [new file with mode: 0644]