forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: llvm#102828
- Loading branch information
Showing
2 changed files
with
4 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters