diff options
| author | Chia-hung Duan <chiahungduan@google.com> | 2023-06-15 23:17:39 +0000 |
|---|---|---|
| committer | Chia-hung Duan <chiahungduan@google.com> | 2023-06-20 18:34:48 +0000 |
| commit | 19c26a7c03559a6c7ab1968fcf98e39fd4a86714 (patch) | |
| tree | 278d1f53a07552d6154507cdcf025e0c9e261810 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | 8af224d52cad1380996ed84174d0b01a17d52759 (diff) | |
[scudo] Finer lock granularity in Region of SizeClassAllocator64
In this CL, we introduce two new locks, MMLock for MemMap operations and
FLLock for freelist operations.
MMLock will be used when we want to manipulate pages. For example,
mapping more pages through populateFreeList() and releaseToOSMaybe().
FLLock will be used when we want to access the freelist. For example,
pushBlocks() and popBatch().
With the new locks, they increase the parallelism of the operations
mentioned above. For example, populateFreeList() won't block the
pushBlocks() when it's still doing the system call for more pages.
We also enforce lock hierarchy to avoid deadlock, MMLock is required to
be held before FLLock if you have to lock both of them. We don't store
the lock owner, therefore, we rely static thread-safey annotation to
detect any violation.
Differential Revision: https://reviews.llvm.org/D149140
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
