bytecodealliance / bytecodealliance/componentize-dotnet

Imported Resources don't provide a finalizer

未关闭
#58 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
147
派生
18
PR 合并指标
30 天内没有已合并 PR

描述

Currently, projections for imported resources implement `IDisposable`, but they do not provide a `finalizer`. This means that if the user forgets to manually dispose the resource, its `[resource-drop]` function is never called.

I believe this is incorrect, and the resource should provide a finalizer that calls the resource's `[resource-drop]` function.

---

Version:
````xml

````

贡献指南

打开贡献指南

调研方向

首先定位为导入资源生成的 projection,以及 issue 中描述的 IDisposable 实现。跟踪资源的 [resource-drop] 函数是如何处理的,然后验证未释放的 projection 会通过 finalizer 调用它;issue 未提供文件或测试入口点。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, wasm
领域
backend, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。