Skip to content

WebAssembly threads: shared Memory backing and JavaScript API ownership #285

Description

@chrisbbreuer

Parent: #265
Depends on: #284
Related: #1
Roadmap: #142, #134

Implement shared WebAssembly.Memory storage and its JavaScript embedding boundary.

Acceptance:

  • Represent shared memory with stable cross-thread backing and explicit maximum/ownership metadata.
  • Expose WebAssembly.Memory({shared:true}) through the correct SharedArrayBuffer identity and descriptor semantics.
  • Preserve backing identity and visibility across grow, imports, instances, Context Thread, and Worker boundaries.
  • Define destruction, registry, GC rooting, and concurrent grow/view lifetime without use-after-free or accidental store capture.
  • Add deterministic API, identity, growth, import/link, leak, and ownership tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions