Home
last modified time | relevance | path

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

/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_tls_get_addr.cpp46 static void DTLS_Deallocate(DTLS::DTVBlock *block) { in DTLS_Deallocate()
48 UnmapOrDie(block, sizeof(DTLS::DTVBlock)); in DTLS_Deallocate()
52 static DTLS::DTVBlock *DTLS_NextBlock(atomic_uintptr_t *cur) { in DTLS_NextBlock()
56 DTLS::DTVBlock *next = (DTLS::DTVBlock *)v; in DTLS_NextBlock()
59 DTLS::DTVBlock *new_dtv = in DTLS_NextBlock()
60 (DTLS::DTVBlock *)MmapOrDie(sizeof(DTLS::DTVBlock), "DTLS_NextBlock"); in DTLS_NextBlock()
64 UnmapOrDie(new_dtv, sizeof(DTLS::DTVBlock)); in DTLS_NextBlock()
65 return (DTLS::DTVBlock *)prev; in DTLS_NextBlock()
75 static constexpr uptr kPerBlock = ARRAY_SIZE(DTLS::DTVBlock::dtvs); in DTLS_Find()
76 DTLS::DTVBlock *cur = DTLS_NextBlock(&dtls.dtv_block); in DTLS_Find()
[all …]
Dsanitizer_tls_get_addr.h42 struct DTVBlock { struct
47 static_assert(sizeof(DTVBlock) <= 4096UL, "Unexpected block size");
58 DTLS::DTVBlock *block = in ForEachDVT() argument
59 (DTLS::DTVBlock *)atomic_load(&dtls->dtv_block, memory_order_acquire); in ForEachDVT()
63 block = (DTLS::DTVBlock *)atomic_load(&block->next, memory_order_acquire); in ForEachDVT()