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 | ||