]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: escape analysis needs to run "flood" to fixed point
authorDavid Chase <drchase@google.com>
Sat, 8 Oct 2016 20:45:58 +0000 (16:45 -0400)
committerDavid Chase <drchase@google.com>
Tue, 11 Oct 2016 16:32:15 +0000 (16:32 +0000)
commitf1eed92fd04cc93db44655a5a1870d361c9c5137
treed28ae4fb18dff78c825593972a8be799a1d12b5b
parent88562dc83ecc3e0c5ce85f22356cb7114e4756df
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>
src/cmd/compile/internal/gc/esc.go
test/fixedbugs/issue17318.go [new file with mode: 0644]