diff options
| author | Fangrui Song <i@maskray.me> | 2024-08-14 18:32:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 18:32:29 -0700 |
| commit | 4411d1e3926d67c393e6a7bdb910bbe77507ff26 (patch) | |
| tree | e8c3f1fe65e67dd54849798fe258fb322ce378ff /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.cpp | |
| parent | 5873aa83b871393b5ada4c2033445d5fd52d7461 (diff) | |
[sanitizer] Remove GetCurrentThread nullness checks from Allocate
The nullness check is unreachable.
* For the main thead and pthread_create created threads, the `*Allocate` functions must be called after `*_current_thread` is set.
set.
* For threads created by Linux's `clone`, static TLS is either reused or
set to a new value (CLONE_SETTLS).
Make this change for asan/msan and possibly extend the change to other
sanitizers. (asan supports many platforms and I am not 100% certain that
all platforms have the property.)
Pull Request: https://github.com/llvm/llvm-project/pull/102828
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
