mirror of
https://github.com/golang/go
synced 2024-09-30 22:48:32 -06:00
61798d64f0
We were recursing infinitely evaluating objects of recursive pointer types such as "type foo *foo". Now we track named pointer types we have already seen to avoid trying to dereference such objects forever. I lazily initialized the "seen" map to avoid the allocation in the normal case when you aren't dealing with named pointer types. Fixes golang/go#37104. Change-Id: I5f294cfc5a641e7b5fd24e1d9dc55520726ea560 Reviewed-on: https://go-review.googlesource.com/c/tools/+/218579 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
module | ||
packagesinternal | ||
semver | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
xcontext |