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

Abierto
#15,438 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #15442 de @NaniToka — cerrado sin fusionar

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust, wasm
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
18.9k
Forks
2k
Merge medio
1 d 6 h
PR fusionados (30 d)
238

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bytecodealliance/wasmtime

Todos los issues de bytecodealliance/wasmtime

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.