mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 04:16:08 +00:00
[NFC][HWASAN] Hide thread_list_placeholder
This commit is contained in:
parent
281195a22f
commit
16a76397ab
@ -1,13 +1,16 @@
|
||||
#include "hwasan_thread_list.h"
|
||||
|
||||
namespace __hwasan {
|
||||
static ALIGNED(16) char thread_list_placeholder[sizeof(HwasanThreadList)];
|
||||
|
||||
static HwasanThreadList *hwasan_thread_list;
|
||||
|
||||
HwasanThreadList &hwasanThreadList() { return *hwasan_thread_list; }
|
||||
|
||||
void InitThreadList(uptr storage, uptr size) {
|
||||
CHECK_EQ(hwasan_thread_list, nullptr);
|
||||
|
||||
static ALIGNED(alignof(
|
||||
HwasanThreadList)) char thread_list_placeholder[sizeof(HwasanThreadList)];
|
||||
hwasan_thread_list =
|
||||
new (thread_list_placeholder) HwasanThreadList(storage, size);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user