[HWASAN] Set os_id in Thread::Init to make sure that the thread can be found by GetTh...
authorKirill Stoimenov <kstoimenov@google.com>
Thu, 2 Feb 2023 01:32:16 +0000 (01:32 +0000)
committerKirill Stoimenov <kstoimenov@google.com>
Thu, 2 Feb 2023 01:42:48 +0000 (01:42 +0000)
commit029b410df31afd6ea1aee9da6949c84b6db19112
treeb8e9180b9a8e0639c8d35dec5740b67eaa7e44dd
parentf514b0e144db063931d19a8ebc2dc42083d0eb2f
[HWASAN] Set os_id in Thread::Init to make sure that the thread can be found by GetThreadByOsIDLocked.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D143125
12 files changed:
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
compiler-rt/lib/hwasan/hwasan_thread.cpp
compiler-rt/lib/hwasan/hwasan_thread.h
compiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
compiler-rt/test/lsan/TestCases/Linux/fork_threaded.cpp
compiler-rt/test/lsan/TestCases/Linux/guard-page.c
compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp
compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
compiler-rt/test/lsan/TestCases/many_tls_keys_thread.cpp
compiler-rt/test/lsan/TestCases/use_registers.cpp
compiler-rt/test/lsan/TestCases/use_registers_extra.cpp
compiler-rt/test/lsan/TestCases/use_stacks_threaded.cpp