commit | 7e91c96b38384728d8fd84d8b798430401efce31 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Mon Aug 31 19:45:35 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Wed Sep 16 22:05:48 2020 +0000 |
tree | 34ac651dfed78442b50c9bb870b55ea8a8a812f6 | |
parent | 63fb5a05d8b08b820896f66ff04210c0e953c5cc [diff] |
Fix a destruction of Enumerator objects This change stops the statistics collection explicitly in the destructor of Enumerator class, to avoid freeing StatsCollector object twice that causes SIGABRT. Also, this modifies the looper message handler to return an error if a current event has been changed to terminate the collection while it was in the queue. Fix: 162631113 Fix: 163813461 Test: Build evs_enumerator_fuzzer and run on the target device Change-Id: I74b37dc6246575aab207ed1fcce3ef92762a6d9c Merged-In: I74b37dc6246575aab207ed1fcce3ef92762a6d9c (cherry picked from commit 0297abf81a9a19368b02098423318830966782e0)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.