summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2025-01-24 18:56:44 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2025-01-24 18:58:52 +0000
commit56eac87d60793a676c4d9eda0498f310ed5bfd2a (patch)
tree6ce660b745542038ec263ba07aca750d8521a0ec /libs/androidfw/FileStream.cpp
parentc7bd665fb7edf7fb68a098ff7a3f2f6c35e9f2c7 (diff)
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions