Skip to content

cimacmillan/WasiThreadsSchedYieldBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WasiThreadsShedYieldBug

Temporary repo to help reproduce a wasi threads bug, which only reproduces in debug mode

Prerequisites

cargo build --target wasm32-wasi-preview1-threads && cargo build --release --target wasm32-wasi-preview1-threads

Expected output

Running the release target shows the expected output

wasmtime --wasm threads --wasi threads target/wasm32-wasi-preview1-threads/release/wasi_channel.wasm

Or running it natively

cargo run

Output

receiving
        sending [1, 2, 3]
        sent
received [1, 2, 3]

Reproducing

Running the debug target reproduces the issue

wasmtime --wasm threads --wasi threads target/wasm32-wasi-preview1-threads/debug/wasi_channel.wasm

Output

receiving
        sending [1, 2, 3]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages