[docs] Update HowToReleaseLLVM documentation.
[llvm-project.git] / compiler-rt / lib / hwasan / hwasan_thread_list.cpp
blobfa46e658b69d535c70a4696f6b1c774801536e1d
1 #include "hwasan_thread_list.h"
3 namespace __hwasan {
4 static ALIGNED(16) char thread_list_placeholder[sizeof(HwasanThreadList)];
5 static HwasanThreadList *hwasan_thread_list;
7 HwasanThreadList &hwasanThreadList() { return *hwasan_thread_list; }
9 void InitThreadList(uptr storage, uptr size) {
10 CHECK(hwasan_thread_list == nullptr);
11 hwasan_thread_list =
12 new (thread_list_placeholder) HwasanThreadList(storage, size);
15 } // namespace __hwasan