]> Cypherpunks repositories - gostls13.git/commit
gc: avoid false positives when using scalar struct fields.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 12 Jan 2012 11:08:40 +0000 (12:08 +0100)
committerLuuk van Dijk <lvd@golang.org>
Thu, 12 Jan 2012 11:08:40 +0000 (12:08 +0100)
commit94ff311d1b91d0bfe2dc53d20d06e81af5a3c46f
tree3726fb3fcbe60671beb27d22ad5b0331291a508b
parente955a3cca2ad600666f2f814aad6075a42a88d4d
gc: avoid false positives when using scalar struct fields.

The escape analysis code does not make a distinction between
scalar and pointers fields in structs. Non-pointer fields
that escape should not make the whole struct escape.

R=lvd, rsc
CC=golang-dev, remy
https://golang.org/cl/5489128
src/cmd/gc/esc.c
test/escape2.go