Skip to content

Improve SharedArrayBuffer support#610

Merged
saghul merged 3 commits intomasterfrom
sab
Jul 16, 2024
Merged

Improve SharedArrayBuffer support#610
saghul merged 3 commits intomasterfrom
sab

Conversation

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