NativeScript / NativeScript/napi-android
Debug and fix memory leaks
オープン
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue ではファイルもテストも指定されていません。まず参照されている commit を確認し、その後 JS 側に残っている Java Interface Implementation のリークを調査してください。記載されたリークが修正され、メモリが回収されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, cpp, java, javascript
- 領域
- mobile-dev, performance
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100