]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix fieldtrack experiment
authorKeith Randall <khr@golang.org>
Thu, 3 Mar 2016 04:54:41 +0000 (20:54 -0800)
committerKeith Randall <khr@golang.org>
Thu, 3 Mar 2016 05:34:48 +0000 (05:34 +0000)
commit71d13a8c01706c0196a843116d403fe8eb446130
tree6c27b45b15561d44886737e36c65ff433e9699b2
parent868fb9ff1d95f3f2f344c076ff2fafbb483e0631
cmd/compile: fix fieldtrack experiment

The ODOTPTRs introduced in CL #19814 don't have field names,
just offsets.  The fieldtrack experiment crashes when
examining them.  Instead, just ignore them.  We'll never track
these fields anyway.

It would be nice to have the runtime type struct build in the
compiler (like we do sudog, for example) so we could use its
fieldnames.  Doesn't seem worth it just for this CL.

Change-Id: I5e75024f5a8333eb7439543b3f466ea40213a1b9
Reviewed-on: https://go-review.googlesource.com/20157
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/walk.go