NativeScript / NativeScript/napi-android
Debug and fix memory leaks
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 33
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
描述
New runtimes work differently and are not well tested yet for memory leaks. We are working on fixing issues anything we find.
- When a java object is finally freed in Java, we notify the JS side to free the JS counterpart. At this time, the Java object is held weakly in Java too using a WeakReference. While the Java object is weakly held, the WeakReference is strongly kept in a HashMap never getting removed. In this PR we release the WeakReferences too on GC event ensuring that all memory is reclaimed. Fixed in https://github.com/NativeScript/napi-android/commit/5e48302fc0eeab63eae6935e864de36d25100e2c
- Investigate Java Interface Implementation leaking on JS Side
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
issue 中没有指定文件或测试。先查看所引用的 commit,然后调查 JS 侧残留的 Java Interface Implementation 泄漏;完成的标准是修复所列出的泄漏并回收内存。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, cpp, java, javascript
- 领域
- mobile-dev, performance
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100