diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-09-25 15:12:08 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-09-25 15:12:08 +0000 |
commit | 22396c2f4798436ed86be1345f60b098be48b155 (patch) | |
tree | 1436f5b52806b0bda7470accc4e9a7ff1883a55b /lldb/packages/Python/lldbsuite/test/expression_command/macros/TestMacros.py | |
parent | 4a97df01c43170eed51d2cca0dc779d9d2ca6419 (diff) | |
download | bcm5719-llvm-22396c2f4798436ed86be1345f60b098be48b155.tar.gz bcm5719-llvm-22396c2f4798436ed86be1345f60b098be48b155.zip |
[scudo] Scudo thread specific data refactor, part 2
Summary:
Following D38139, we now consolidate the TSD definition, merging the shared
TSD definition with the exclusive TSD definition. We introduce a boolean set
at initializaton denoting the need for the TSD to be unlocked or not. This
adds some unused members to the exclusive TSD, but increases consistency and
reduces the definitions fragmentation.
We remove the fallback mechanism from `scudo_allocator.cpp` and add a fallback
TSD in the non-shared version. Since the shared version doesn't require one,
this makes overall more sense.
There are a couple of additional cosmetic changes: removing the header guards
from the remaining `.inc` files, added error string to a `CHECK`.
Question to reviewers: I thought about friending `getTSDAndLock` in `ScudoTSD`
so that the `FallbackTSD` could `Mutex.Lock()` directly instead of `lock()`
which involved zeroing out the `Precedence`, which is unused otherwise. Is it
worth doing?
Reviewers: alekseyshl, dvyukov, kcc
Reviewed By: dvyukov
Subscribers: srhines, llvm-commits
Differential Revision: https://reviews.llvm.org/D38183
llvm-svn: 314110
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros/TestMacros.py')
0 files changed, 0 insertions, 0 deletions