commit | 4509ca5ae6bf0f217f158ccf7587caa4cf1273ea | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Thu Oct 08 11:54:48 2020 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Fri Oct 09 10:56:04 2020 -0700 |
tree | 03ed92df426b871ed6677fdb1de6d4373919c532 | |
parent | af614175d71df97fa61488abc2a4ff5442498e8c [diff] |
logd: Release() then wait for reader to exit in PrintAllLogs::End() Otherwise, the reader thread will still be active and hold references to logs when ~PrintAllMessages() destroys its LogBuffer instance, which then triggers the CHECK() in ~SerializedLogChunk(). Test: ReplayMessages print_all_logs succeeds without error Change-Id: Icee69deafa498de4ccf4d0c5eff19bef6261927e