mirror of
https://github.com/golang/go
synced 2024-11-18 18:34:40 -07:00
b10dfb99c5
Also removes a potential race condition regarding the used flag of Var objects when type-checking packages concurrently. Implementation: Rather than marking all used dot-imported objects and then deduce which corresponding package was used, now we consider all dot-imported packages as unused and remove each package from the unused packages map as objects are used. Now only objects that can be marked as used have a used field (variables, labels, and packages). As a result, the code became cleaner and simpler. Fixes golang/go#8969. LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/163740043 |
||
---|---|---|
.. | ||
buildutil | ||
callgraph | ||
exact | ||
gccgoimporter | ||
gcimporter | ||
importer | ||
loader | ||
pointer | ||
ssa | ||
types | ||
vcs |