spinframework / spinframework/spin

Use `YieldCustom` / `tokio::task::yield_now()` for epoch interruption

Open
#3,278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

See https://github.com/bytecodealliance/wasmtime/issues/10667

Bonus points for verifying that a thread can currently be blocked by a CPU-busy guest (calling no host imports; sleep doesn't cut it!) before making this change, as a confirmation and regression test.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Wasmtime issue and investigate whether a CPU-busy guest that makes no host imports can currently block a thread; use that scenario as the regression test. Then evaluate the proposed YieldCustom or tokio::task::yield_now() approach, with done meaning epoch interruption handles the case and the test confirms the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.