Allow multiple contexts in one Wasm instance

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript, wasm
領域
compilers

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
5
フォーク
1
平均マージ
7時間 12分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bytecodealliance/nightmonkey のほかの issue

bytecodealliance/nightmonkey の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。