JankStatsAggregator.issueJankReport concurrency issues
@AjeshRPai がすでに取り組んでいます。
2026年1月8日 から。
評価
この issue はまだ評価されていません。
説明
The example JankStatsAggregator class can produce ConcurrentModificationException for listeners that perform some additional operations on it. Presumably because of how FrameData objects are internally mutated.
It appears that JankStatsAggregator.issueJankReport attempts to account for that with copies, but it may not be fully thread safe.
For example:
private val reportListener = JankStatsAggregator.OnJankReportListener { _, _, jankFrameData ->
jankFrameData.filter(...).map { frame ->
// Do something with FrameData and/or StateInfo
}
}
This usage results in rare concurrency exceptions. I'm not sure if it is a misusage on my end, but as a user I would expect the listener to be thread safe.
- 主要言語
- Kotlin
- スター
- 1.4k
- フォーク
- 250
- 平均マージ
- 10分
- マージ済み PR(30日)
- 5
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/performance-samples のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
android/performance-samples#344 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
android/performance-samples#343 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
android/performance-samples#334 · コメント 1 件 · リアクション 1 件 ·
-
Add a sample for file IO再び着手できるかも @AjeshRPai が 256 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
android/performance-samples#308 · コメント 2 件 · 担当者 1 名 ·
-
Dependency Dashboard再び着手できるかも @AjeshRPai が 262 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
android/performance-samples#307 · 担当者 1 名 ·
android/performance-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug webview
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
home-assistant/android#7524 ·
メンテナーはふだん 1 日以内に返信
-
Issue: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenAPITools/openapi-generator#25021 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
software-mansion/enriched-markdown#897 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
detekt/detekt#9761 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信