commit | 6fc752c73748124da5b5bc53f4398bacdca84b64 | [log] [tgz] |
---|---|---|
author | Hui Yu <huiyu@google.com> | Fri Jul 20 17:48:43 2018 +0000 |
committer | Hui Yu <huiyu@google.com> | Fri Jul 20 19:51:17 2018 +0000 |
tree | ac059de68cfcaf16ac9853c8f188e5e31169c57e | |
parent | 38bd60a75aef6043b3739ae70fb751f60a201104 [diff] |
Revert "Fix the memory leak in BatteryStatsImpl.Timebase.mObservers." This reverts commit 420ed9ef22efce887900a72964b178cc94274bc3. Reason for revert: The WeakReference change can prevent memory leak, but but the extra time spend on creating thousands of WeakReference objects has slowed down system_server startup as reported by b/111658334. Revert this CL for now, will find other approach to prevent memory leak. Change-Id: I07a5806e36159467459b841f63e2b0c55b6cc10b