commit | 459ab65d7ca37f4a94b77c122ab7eef32dc7e33e | [log] [tgz] |
---|---|---|
author | xshu <xshu@google.com> | Mon Dec 02 14:39:55 2019 -0800 |
committer | xshu <xshu@google.com> | Mon Dec 02 14:52:21 2019 -0800 |
tree | dd46c142648822b82c2aaa644b0c5facce933979 | |
parent | 599ac208a7107d928e522903e0df08c6506947c4 [diff] |
Fix race in StaEvents metrics collection A race is happening because one part of StaEventList modification is current unprotected, and we have 2 different threads that trigger StaEventList modifications: - Thread 1: Binder thread -> dump() -> clearing StaEventList - Thread 2: WifiLooper -> addStaEvent() -> may result in removing first element if StaEventList if 'full' Bug: 145163784 Test: atest FrameworksWifiTests Change-Id: Id390bae9a9a661900073195fd1224106a03273ee