Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56eac87d authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

Make TableLogBufferFactory thread-safe.

It's possible for 2 threads to call TableLogBufferFactory#getOrCreate at
the same time with the same name, and we don't want the factory to
incorrectly create two separate instances of TableLogBuffer with the
same name. (If it did, then DumpManager#registerTableLogBuffer would
throw an IllegalArgumentException.)

Fixes: 391803434
Flag: EXEMPT bugfix
Test: SysUI compiles
Test: atest TableLogBufferFactoryTest
Change-Id: Icce197acab9b6858bea98779cd46b80947de6cac
parent c7bd665f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment