Skip to content

fix: timer isn't garbage collected#649

Merged
lewis6991 merged 3 commits intonvim-treesitter:masterfrom
phanen:fix-leak
Mar 6, 2026
Merged

fix: timer isn't garbage collected#649
lewis6991 merged 3 commits intonvim-treesitter:masterfrom
phanen:fix-leak

Conversation

@phanen
Copy link
Contributor

@phanen phanen commented Dec 15, 2025

I found many handler in debug.getregistry() point to here.
Close the handler before nullify it.

I found many handler in debug.getregistry() point to here.
Close the handler before nullify it.
@rodhash
Copy link

rodhash commented Mar 6, 2026

I experienced intermittent instability and stuttering in Neovim until identifying this root cause, so I was about to suggest the same PR.

In a long session with multiple windows, 1257 leaked timer handles had accumulated causing the nvim process RSS to grow to 6+ GB.

ps: nice fork bomb

@lewis6991 lewis6991 merged commit 56ffbbc into nvim-treesitter:master Mar 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants