Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 21, 2024

Adding a reference from globalThis -> abort ends up preventing GC of the whole Module since abort references Module.

Fixes: #22979

Adding a reference from `globalThis` -> `abort` ends up preventing GC
of the whole `Module` since `abort` references `Module`.

Fixes: emscripten-core#22979
@sbc100 sbc100 requested a review from kripken November 21, 2024 22:33
@sbc100 sbc100 merged commit 516e809 into emscripten-core:main Nov 21, 2024
28 checks passed
@sbc100 sbc100 deleted the remove_abort_reference branch November 21, 2024 23:52
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.

Using module in environments without setTimeout, clearTimeout, atob causing memory leak

2 participants