Skip to content

ffi: don't unnecessarily create SharedArrayBuffer instances#649

Merged
saghul merged 1 commit intomasterfrom
simplify-sab
Sep 9, 2024
Merged

ffi: don't unnecessarily create SharedArrayBuffer instances#649
saghul merged 1 commit intomasterfrom
simplify-sab

Conversation

@saghul
Copy link
Copy Markdown
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
@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