diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-07 16:31:08 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-07 16:31:08 +0000 |
commit | 3cd4022c3931c422aa18bd6c80255b12250542ea (patch) | |
tree | ed7a44fa15cc05cf350cebfb9bf77a7b61ef115d /lldb/packages/Python/lldbsuite/test/expression_command | |
parent | c6f0ade6c3fa747ec94abfda5e559f97c97f71db (diff) | |
download | bcm5719-llvm-3cd4022c3931c422aa18bd6c80255b12250542ea.tar.gz bcm5719-llvm-3cd4022c3931c422aa18bd6c80255b12250542ea.zip |
tsan: allow usage of global vars with ctors in interceptors
We allow usage of global/per-thread data with non-trivial ctors/dtors
throughout tsan code base by placing all global/per-thread data into
Context/ThreadState and then explicitly constructing them with
placement new. This greatly simplifies code by restricting the
"linker initialized plague" to only these 2 objects.
Do the same for interceptors data.
This allows to use Vector instead of bunch of hand-written code in:
https://reviews.llvm.org/D39619
Reviewed in: https://reviews.llvm.org/D39721
llvm-svn: 317587
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command')
0 files changed, 0 insertions, 0 deletions