-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core.runtime): BroadcastReceiver与BroadcastReceiverWapper映射Map采用弱引用实现
通过分析代理对象的使用场景可以确定这个映射Map可以由弱引用实现, 从而避免对原有BroadcastReceiver的GC时机造成影响。 该为弱引用实现后,可以省去对map的remove操作,修复此前unregisterReceiver时忘记remove造成的泄漏。
- Loading branch information
Showing
2 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters