]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: added special case for reflect header fields to esc
authorDavid Chase <drchase@google.com>
Tue, 28 Mar 2017 21:55:26 +0000 (17:55 -0400)
committerDavid Chase <drchase@google.com>
Wed, 29 Mar 2017 17:39:59 +0000 (17:39 +0000)
commit24e94766c082338d83e5f3e1f8eccf4f070d8956
treeb508ab0066975917e90cea72a32abc392281cee3
parent83843b16100d889bc84580c9427e02c7c9cee769
cmd/compile: added special case for reflect header fields to esc

The uintptr-typed Data field in reflect.SliceHeader and
reflect.StringHeader needs special treatment because it is
really a pointer.  Add the special treatment in walk for
bug #19168 to escape analysis.

Includes extra debugging that was helpful.

Fixes #19743.

Change-Id: I6dab5002f0d436c3b2a7cdc0156e4fc48a43d6fe
Reviewed-on: https://go-review.googlesource.com/38738
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/esc.go
test/fixedbugs/issue19743.go [new file with mode: 0644]