diff options
author | James Molloy <James Molloy jmolloy@google.com> | 2019-11-05 22:53:56 +0000 |
---|---|---|
committer | James Molloy <James Molloy jmolloy@google.com> | 2019-11-05 22:57:44 +0000 |
commit | 041f35c468088d315bae6c2a71ec901a12cca1b5 (patch) | |
tree | f02192ac5d0cb15366eb200df334e53a88d39be4 /lldb/packages/Python/lldbsuite/test | |
parent | 7060840bc9cc99912b74fe525d47b430cc1e0b89 (diff) | |
download | bcm5719-llvm-041f35c468088d315bae6c2a71ec901a12cca1b5.tar.gz bcm5719-llvm-041f35c468088d315bae6c2a71ec901a12cca1b5.zip |
[Automaton] Make Automaton thread-safe
In an optimization to improve performance (rL375240) we added a std::shared_ptr
around the main table map. This is safe, but we also ended up making the
transcriber object a std::shared_ptr too. This has mutable state, so must be
copied when we copy the Automaton object. This is very cheap; the main optimization
was about the map `M` only.
Reported by Dan Palermo. No test as triggering this is rather hard from a unit test.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions