C# ResourceTable never frees entries

オープン 初心者向け
#2,056 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

src/hyperlight_component_csharp/src/Runtime.cs から始めて ResourceTable<T> を読んでください。特に Give、Lend、Take と、呼び出し終了時のクリーンアップに注目してください。ストレージを変更する前に、エントリがどのようにキー付けされているか、ハンドルがどのように使われているかを確認してください。完了条件は、Take 時および呼び出し終了時にエントリが削除されること、ハンドルが再利用されないこと、テーブルが有効なエントリのみを保持することです。

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

説明

C-bug S-needs-triage

ResourceTable<T> in Runtime.cs adds an entry for every Give and Lend. Take and the end of a call set the entry's value to null but never remove the entry. A long-lived sandbox that passes resources across calls therefore grows by one entry per transfer, without limit.

Storing entries in a dictionary keyed by an increasing counter, and removing them on Take and at the end of a call, bounds the table to live entries. Handles are still never reused.

主要言語
Rust
スター
4.8k
フォーク
222
平均マージ
1日 16時間
マージ済み PR(30日)
60

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

hyperlight-dev/hyperlight のほかの issue

hyperlight-dev/hyperlight の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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