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

Improve SharedArrayBuffer support #610

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Improve SharedArrayBuffer support #610

merged 3 commits into from
Jul 16, 2024

Conversation

saghul
Copy link
Owner

@saghul saghul commented Jul 16, 2024

  • Use custom allocator
  • Allow sending it to a Worker
  • Enable Atomic.wait on workers

It's important to make sure the memory is not allocated with the JS
allocator, since we might send the SAB over to a worker, for example.

A magic number is used to help detect a SAB we didn't allocate, which
happens with FFI code, for example.
@saghul saghul marked this pull request as ready for review July 16, 2024 14:23
@saghul saghul merged commit 6b5e302 into master Jul 16, 2024
18 checks passed
@saghul saghul deleted the sab branch July 16, 2024 14:24
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