Allow multiple contexts in one Wasm instance

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
javascript, wasm
Ambito
compilers

Direzione di ricerca

This is an open design question, not a scoped change: the issue asks whether per-JSContext state can replace the global data used in places such as the IC chains, without a large performance cost. Start by reading the code that emits those globals and the JSContext definition to see what state escapes per-context; the issue names neither files nor tests, so locating them is part of the work. Done would mean a written answer with measurements on whether the change is feasible, and if so, a redesigned layout for one context per Wasm instance.

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

Descrizione

Right now, for performance reasons, NightMonkey-compiled code uses global data in several places (e.g., IC chains) to avoid the cost of indirections off of the JSContext.

Ideally, we would support multiple contexts and multiple instances of the runtime within one Wasm instance. We should investigate whether this is possible with reasonable/minimal performance cost.

Lingua principale
JavaScript
Stelle
5
Fork
1
Merge medio
7h 12m
PR unite (30g)
2

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/nightmonkey

Tutte le issue di bytecodealliance/nightmonkey

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.