Home
last modified time | relevance | path

Searched refs:GetBlockBegin (Results 1 – 15 of 15) sorted by relevance

/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_combined.h129 void *GetBlockBegin(const void *p) { in GetBlockBegin() function
131 return primary_.GetBlockBegin(p); in GetBlockBegin()
132 return secondary_.GetBlockBegin(p); in GetBlockBegin()
139 return primary_.GetBlockBegin(p); in GetBlockBeginFastLocked()
H A Dsanitizer_allocator_secondary.h165 return GetBlockBegin(p) != nullptr; in PointerIsMine()
182 void *GetBlockBegin(const void *ptr) const { in GetBlockBegin() function
H A Dsanitizer_allocator_primary32.h206 void *GetBlockBegin(const void *p) { in GetBlockBegin() function
264 // Too slow: CHECK_EQ((void *)chunk, GetBlockBegin((void *)chunk)); in ForEachChunk()
H A Dsanitizer_allocator_primary64.h260 void *GetBlockBegin(const void *p) { in GetBlockBegin()
382 // Too slow: CHECK_EQ((void *)chunk, GetBlockBegin((void *)chunk)); in ForEachChunk()
259 void *GetBlockBegin(const void *p) { GetBlockBegin() function
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_debugging.cpp209 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_locate_address()
214 region_address = (uptr)allocator()->GetBlockBegin((void *)addr); in __tsan_locate_address()
249 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_get_alloc_stack()
H A Dtsan_external.cpp112 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_external_assign_tag()
H A Dtsan_mman.cpp371 void *beg = allocator()->GetBlockBegin(p); in user_alloc_begin()
468 return allocator()->GetBlockBegin(p) != 0; in __sanitizer_get_ownership()
H A Dtsan_rtl_report.cpp300 block_begin = (uptr)a->GetBlockBegin((void *)addr); in AddLocation()
/llvm-project/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_test.cpp251 CHECK_EQ(x, a->GetBlockBegin(x)); in TestSizeClassAllocator()
252 CHECK_EQ(x, a->GetBlockBegin(x + size - 1)); in TestSizeClassAllocator()
279 // Check that GetBlockBegin never crashes. in TestSizeClassAllocator()
283 Ident(a->GetBlockBegin(reinterpret_cast<void *>(x))); in TestSizeClassAllocator()
439 // Make sure we correctly compute GetBlockBegin() w/o overflow. in SizeClassAllocatorGetBlockBeginStress()
442 void *beg = a->GetBlockBegin(x); in SizeClassAllocatorGetBlockBeginStress()
671 CHECK_EQ(p, a.GetBlockBegin(p)); in TEST()
672 CHECK_EQ(p, a.GetBlockBegin(p + size - 1)); in TEST()
673 CHECK_EQ(p, a.GetBlockBegin(p + size / 2)); in TEST()
682 // Regression test for boundary condition in GetBlockBegin() in TEST()
[all...]
/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp407 void *block = allocator.GetBlockBegin(reinterpret_cast<void*>(address)); in FindHeapChunkByAddress()
420 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationBegin()
435 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationSize()
635 uptr chunk = reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p)); in IgnoreObject()
/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp190 void *beg = allocator.GetBlockBegin(p); in AllocationBegin()
204 const void *beg = allocator.GetBlockBegin(p); in AllocationSize()
/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp154 void *beg = allocator.GetBlockBegin(p); in GetMallocBegin()
335 void *chunk = allocator.GetBlockBegin(p); in IgnoreObject()
/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp305 void *beg = allocator.GetBlockBegin(p); in AllocationBegin()
324 if (allocator.GetBlockBegin(p) != p) in AllocationSize()
/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp160 return get_allocator().GetBlockBegin(reinterpret_cast<void *>(this)); in AllocBeg()
588 // Assumes alloc_beg == allocator.GetBlockBegin(alloc_beg). in GetMemprofChunk()
608 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p)); in GetMemprofChunkByAddr()
/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp225 void *p = get_allocator().GetBlockBegin(m); in Recycle()
812 // Assumes alloc_beg == allocator.GetBlockBegin(alloc_beg). in GetAsanChunk()
834 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p));