summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
diff options
context:
space:
mode:
authorJames Molloy <James Molloy jmolloy@google.com>2019-11-05 22:53:56 +0000
committerJames Molloy <James Molloy jmolloy@google.com>2019-11-05 22:57:44 +0000
commit041f35c468088d315bae6c2a71ec901a12cca1b5 (patch)
treef02192ac5d0cb15366eb200df334e53a88d39be4 /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
parent7060840bc9cc99912b74fe525d47b430cc1e0b89 (diff)
downloadbcm5719-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/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud