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

ffi: don't unnecessarily create SharedArrayBuffer instances #649

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

saghul
Copy link
Owner

@saghul saghul commented Sep 9, 2024

What we really want is an ArrayBuffer where memory is not freed when the JS object is collected, since the memory is allocated and freed by libffi.

In addition, we can remove that hack with the magic number in the SAB allocator.

What we really want is an ArrayBuffer where memory is not freed when the
JS object is collected, since the memory is allocated and freed by
libffi.

In addition, we can remove that hack with the magic number in the SAB
allocator.
@saghul saghul merged commit 7e961ef into master Sep 9, 2024
18 checks passed
@saghul saghul deleted the simplify-sab branch September 9, 2024 19:34
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