]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: trim more unnecessary escape analysis messages
authorMatthew Dempsky <mdempsky@google.com>
Mon, 1 Apr 2019 21:01:58 +0000 (14:01 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 2 Apr 2019 18:00:32 +0000 (18:00 +0000)
commit131eb8fbf80fd8b51ae8b5c5220d566582a41e71
tree7a3f7751dccc028633d8b32abc2c743c04412f25
parente29f74efb90b8a7f20fd4ffce4038c824c173f50
cmd/compile: trim more unnecessary escape analysis messages

"leaking closure reference" is redundant for similar reasons as "&x
escapes to heap" for OADDR nodes: the reference itself does not
allocate, and we already report when the referenced variable is moved
to heap.

"mark escaped content" is redundant with "leaking param content".

Updates #23109.

Change-Id: I1ab599cb1e8434f1918dd80596a70cba7dc8a0cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/170321
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/esc.go
test/escape2.go
test/escape2n.go
test/escape_array.go