Change information
Commit message:
gopls/internal/cache: store analyzeSummary fields on analysisNode
Replace analysisNode.summary with separate compiles and actions fields,
copied from the *analyzeSummary returned by runCached. The summary
itself is no longer retained, so it can be safely shared via filecache
or inFlightAnalyses without a defensive copy, and decrefPreds now nils
the node-local actions field rather than mutating a shared struct.
This lets runCached use filecache.Get with analyzeSummaryCodec.Decode
directly, caching the decoded summary in memCache like the other kinds.
Change-Id: I1c890053fef709ebe2f7da7543a0e7280b4d0b8a
Files:
- M gopls/internal/cache/analysis.go
Change size: M
Delta: 1 file changed, 42 insertions(+), 47 deletions(-)
Branch: refs/heads/master