Return an error on fiber allocation failure in `thread.new-indirect`

Aperta
#15,438 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #15442 di @NaniToka — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, wasm
Ambito
backend

Direzione di ricerca

Start from the component-model thread.new-indirect implementation and the fiber allocation path that currently raises store limit of fibers has been reached; read component-model PR 760 for the -1 contract and closed PR #15442 for prior context. The change is done when allocation failure is surfaced as the builtin's error return rather than a trap, with a test covering the exhausted-fiber-limit case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

wasm-proposal:component-threading

This component-model-threading builtin was changed in https://github.com/WebAssembly/component-model/pull/760 to be allowed to return -1, in which case it indicates that a thread failed to be created to the guest. Currently, however, Wasmtime will simply trap with store limit of fibers has been reached in this situation. We should refactor things such that the fiber allocation failure happens during thread.new-indirect so an error can be returned.

Lingua principale
Rust
Stelle
18.9k
Fork
2k
Merge medio
1g 6h
PR unite (30g)
238

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bytecodealliance/wasmtime

Tutte le issue di bytecodealliance/wasmtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.