threads icon indicating copy to clipboard operation
threads copied to clipboard

Threads and Atomics in WebAssembly

Results 82 threads issues
Sort by recently updated
recently updated
newest added

`memory.fill` is currently specified as writing its bytes sequentially from lowest address to highest: https://webassembly.github.io/spec/core/exec/instructions.html#xref-syntax-instructions-syntax-instr-memory-mathsf-memory-fill. This behavior is unobservable to the thread executing the instruction, and I would presume most...

The `atomic.fence` instruction [was added to the Overview](https://github.com/WebAssembly/threads/pull/141), but neither to the [binary](https://webassembly.github.io/threads/core/exec/instructions.html#atomic-memory-instructions) nor [text format](https://webassembly.github.io/threads/core/text/instructions.html#atomic-memory-instructions) spec. (Looks like [this plan](https://github.com/WebAssembly/threads/pull/170#pullrequestreview-538609569) fell through the cracks.) Related note: I find it...

Hi, has anyone thought about it yet? So far - not even thinking of compiling libomp to wasm - even a minimal example fails in the backend, e.g.: ``` #pragma...

Looking through the overview, and the changes to the binary format, there doesn't seem to be any support for multiple memories.

The global has an accessor for value, but not for its mutability and type properties. If I read the value and I see '37' I can't infer the type, since...

This repo has not had a lot of activity lately, so I'm wondering if this proposal is ready to move to phase 3. The phase 3 entry requirements are: 1....

Currently, this threads proposal repo adds `shared` memory tests to existing test files in test/core: memory.wast, imports.wast, and exports.wast. For example: https://github.com/WebAssembly/threads/blob/main/test/core/memory.wast#L9 However, not all wasm engines are expected to...

I wrote a code using pthreads where multiple threads were accessing and modifying a global variable and race condition should occur without any locking mechanism or atomic operations but it...

While implementing wasm-threading in JavaScriptCore, we found that this edge cases are not tested in spec-tests. To clarify cmpxchg behavior, this patch adds them to spec-tests.

A threaded test requires a more substantial harness than can be provided in one JavaScript file, and must be implemented differently for Web JS engines vs. console-based JS engines. The...