• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "hwasan_thread_list.h"
2 
3 namespace __hwasan {
4 static ALIGNED(16) char thread_list_placeholder[sizeof(HwasanThreadList)];
5 static HwasanThreadList *hwasan_thread_list;
6 
hwasanThreadList()7 HwasanThreadList &hwasanThreadList() { return *hwasan_thread_list; }
8 
InitThreadList(uptr storage,uptr size)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);
13 }
14 
15 } // namespace
16