Skip to content

timers: fix leak when interpreter shutsdown early#422

Merged
saghul merged 1 commit intomasterfrom
fix-timer-leaks
Nov 7, 2023
Merged

timers: fix leak when interpreter shutsdown early#422
saghul merged 1 commit intomasterfrom
fix-timer-leaks

Conversation

@saghul
Copy link
Copy Markdown
Owner

@saghul saghul commented Nov 7, 2023

If something creates an unhandled rejection condition we'll end up with timers being kept alive in C without a way to recover them.

Fix it by keeping the strong reference in JS, so it all goes away when we destroy the runtime.

If something creates an unhandled rejection condition we'll end up with
timers being kept alive in C without a way to recover them.

Fix it by keeping the strong reference in JS, so it all goes away when
we destroy the runtime.
@saghul saghul merged commit 5ce349a into master Nov 7, 2023
@saghul saghul deleted the fix-timer-leaks branch November 7, 2023 23:33
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.

1 participant