x/tools/go/packages: use goroutine only for load-ready packages in (*loader).refine #41224
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
(*loader).refine uses (*loader).loadRecursive internally, which may produce a large amount of goroutine as the import graph grows.
With code like following, you can use goroutine only for packages that are ready to load. (existing code)
The text was updated successfully, but these errors were encountered: