Allow multiple contexts in one Wasm instance

Aberta
#5 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
12/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
javascript, wasm
Domínio
compilers

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
5
Forks
1
Merge médio
7h 12min
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de bytecodealliance/nightmonkey

Todas as issues de bytecodealliance/nightmonkey

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.