Skip to content

x/tools/gopls: memory leak in parsing #57222

Closed
@findleyr

Description

@findleyr

It looks like following recent changes to snapshot accounting, snapshot.ParseGo does not track parse keys modes correctly, causing gopls to hold onto parse results from earlier versions of a file.

This can lead to a significant memory leak over time, particularly for large files.

Fix incoming.

CC @adonovan

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions