Home
last modified time | relevance | path

Searched refs:ThreadLocalData (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_fdr_logging.cpp54 struct XRAY_TLS_ALIGNAS(64) ThreadLocalData { struct
69 static_assert(std::is_trivially_destructible<ThreadLocalData>::value,
123 static_assert(alignof(ThreadLocalData) >= 64,
126 static ThreadLocalData &getThreadLocalData() { in getThreadLocalData()
127 alignas(ThreadLocalData) thread_local std::byte in getThreadLocalData()
128 TLDStorage[sizeof(ThreadLocalData)]; in getThreadLocalData()
131 new (reinterpret_cast<ThreadLocalData *>(&TLDStorage)) ThreadLocalData{}; in getThreadLocalData()
135 return *reinterpret_cast<ThreadLocalData *>(&TLDStorage); in getThreadLocalData()
442 static bool setupTLD(ThreadLocalData &TLD) XRAY_NEVER_INSTRUMENT { in setupTLD()
688 auto &TLD = *reinterpret_cast<ThreadLocalData *>(TLDPtr); in fdrLoggingInit()
H A Dxray_basic_logging.cpp57 struct XRAY_TLS_ALIGNAS(64) ThreadLocalData { struct
124 static ThreadLocalData &getThreadLocalData() XRAY_NEVER_INSTRUMENT { in getThreadLocalData()
125 thread_local ThreadLocalData TLD; in getThreadLocalData()
340 ThreadLocalData &TLD = *reinterpret_cast<ThreadLocalData *>(P); in TLDDestructor()