Skip to content

fix: Avoid adding wakers that wake the same task#46

Merged
matheus23 merged 2 commits intomainfrom
matheus23/fix-unbounded-wakers
Jan 30, 2026
Merged

fix: Avoid adding wakers that wake the same task#46
matheus23 merged 2 commits intomainfrom
matheus23/fix-unbounded-wakers

Conversation

@matheus23
Copy link
Member

Description

Fixes #45

We should avoid adding wakers that wake the same task twice. This leaks memory and degrades performance.

Thanks to ktatarnikovhiro for finding this issue and providing a fix.

@matheus23 matheus23 self-assigned this Jan 30, 2026
@github-actions
Copy link

github-actions bot commented Jan 30, 2026

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/n0-watcher/pr/46/docs/n0_watcher/

Last updated: 2026-01-30T13:17:08Z

@matheus23 matheus23 merged commit c2e2ce8 into main Jan 30, 2026
24 checks passed
@matheus23 matheus23 deleted the matheus23/fix-unbounded-wakers branch January 30, 2026 15:56
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.

bug: memory leak - unbounded growth of watchers queue in Shared

1 participant