Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak from marshalling objects #252

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Conversation

jasongin
Copy link
Member

Fixes #250

The primary change is to use ConditionalWeakTable<object, JSReference> so that the (.NET object) keys are weakly-referenced. The JS object value references were already weak.

@jasongin jasongin requested a review from vmoroz March 29, 2024 06:28
@jasongin jasongin merged commit a0fd255 into main Mar 29, 2024
24 checks passed
@jasongin jasongin deleted the dev/jasongin/memory-leak branch March 29, 2024 21:38
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.

Memory leak in JSMarshaller
2 participants