Home
last modified time | relevance | path

Searched refs:GuardedPoolAllocator (Results 1 – 25 of 34) sorted by relevance

12

/external/gwp_asan/gwp_asan/
Dguarded_pool_allocator.cpp27 GuardedPoolAllocator *SingletonPtr = nullptr;
42 GuardedPoolAllocator *GuardedPoolAllocator::getSingleton() { in getSingleton()
46 void GuardedPoolAllocator::init(const options::Options &Opts) { in init()
106 void GuardedPoolAllocator::disable() { in disable()
111 void GuardedPoolAllocator::enable() { in enable()
116 void GuardedPoolAllocator::iterate(void *Base, size_t Size, iterate_callback Cb, in iterate()
127 void GuardedPoolAllocator::uninitTestOnly() { in uninitTestOnly()
153 size_t GuardedPoolAllocator::getRequiredBackingSize(size_t Size, in getRequiredBackingSize()
166 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp()
176 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown()
[all …]
Dguarded_pool_allocator.h32 class GuardedPoolAllocator {
42 constexpr GuardedPoolAllocator() {} in GuardedPoolAllocator() function
43 GuardedPoolAllocator(const GuardedPoolAllocator &) = delete;
44 GuardedPoolAllocator &operator=(const GuardedPoolAllocator &) = delete;
50 ~GuardedPoolAllocator() = default;
190 static GuardedPoolAllocator *getSingleton();
/external/llvm-project/compiler-rt/lib/gwp_asan/
Dguarded_pool_allocator.cpp39 GuardedPoolAllocator *SingletonPtr = nullptr;
52 GuardedPoolAllocator *GuardedPoolAllocator::getSingleton() { in getSingleton()
56 void GuardedPoolAllocator::init(const options::Options &Opts) { in init()
118 void GuardedPoolAllocator::disable() { PoolMutex.lock(); } in disable()
120 void GuardedPoolAllocator::enable() { PoolMutex.unlock(); } in enable()
122 void GuardedPoolAllocator::iterate(void *Base, size_t Size, iterate_callback Cb, in iterate()
133 void GuardedPoolAllocator::uninitTestOnly() { in uninitTestOnly()
154 void *GuardedPoolAllocator::allocate(size_t Size) { in allocate()
205 void GuardedPoolAllocator::trapOnAddress(uintptr_t Address, Error E) { in trapOnAddress()
215 void GuardedPoolAllocator::stop() { in stop()
[all …]
Dguarded_pool_allocator.h32 class GuardedPoolAllocator {
42 constexpr GuardedPoolAllocator() {} in GuardedPoolAllocator() function
43 GuardedPoolAllocator(const GuardedPoolAllocator &) = delete;
44 GuardedPoolAllocator &operator=(const GuardedPoolAllocator &) = delete;
50 ~GuardedPoolAllocator() = default;
175 static GuardedPoolAllocator *getSingleton();
/external/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
Dguarded_pool_allocator_posix.cpp40 void GuardedPoolAllocator::initPRNG() { in initPRNG()
45 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map()
54 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap()
61 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool()
70 void GuardedPoolAllocator::unreserveGuardedPool() { in unreserveGuardedPool()
75 void GuardedPoolAllocator::allocateInGuardedPool(void *Ptr, size_t Size) const { in allocateInGuardedPool()
83 void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr, in deallocateInGuardedPool()
96 size_t GuardedPoolAllocator::getPlatformPageSize() { in getPlatformPageSize()
100 void GuardedPoolAllocator::installAtFork() { in installAtFork()
Dguarded_pool_allocator_fuchsia.cpp20 void GuardedPoolAllocator::initPRNG() { in initPRNG()
24 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map()
39 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap()
47 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool()
60 void GuardedPoolAllocator::unreserveGuardedPool() { in unreserveGuardedPool()
68 void GuardedPoolAllocator::allocateInGuardedPool(void *Ptr, size_t Size) const { in allocateInGuardedPool()
89 void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr, in deallocateInGuardedPool()
100 size_t GuardedPoolAllocator::getPlatformPageSize() { return ZX_PAGE_SIZE; } in getPlatformPageSize()
102 void GuardedPoolAllocator::installAtFork() {} in installAtFork()
/external/gwp_asan/gwp_asan/platform_specific/
Dguarded_pool_allocator_posix.cpp40 void GuardedPoolAllocator::initPRNG() { in initPRNG()
45 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map()
54 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap()
61 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool()
70 void GuardedPoolAllocator::unreserveGuardedPool() { in unreserveGuardedPool()
75 void GuardedPoolAllocator::allocateInGuardedPool(void *Ptr, size_t Size) const { in allocateInGuardedPool()
83 void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr, in deallocateInGuardedPool()
96 size_t GuardedPoolAllocator::getPlatformPageSize() { in getPlatformPageSize()
100 void GuardedPoolAllocator::installAtFork() { in installAtFork()
Dguarded_pool_allocator_fuchsia.cpp19 void GuardedPoolAllocator::initPRNG() { in initPRNG()
23 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map()
38 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap()
46 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool()
59 void GuardedPoolAllocator::unreserveGuardedPool() { in unreserveGuardedPool()
67 void GuardedPoolAllocator::allocateInGuardedPool(void *Ptr, size_t Size) const { in allocateInGuardedPool()
88 void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr, in deallocateInGuardedPool()
99 size_t GuardedPoolAllocator::getPlatformPageSize() { in getPlatformPageSize()
103 void GuardedPoolAllocator::installAtFork() {} in installAtFork()
/external/gwp_asan/gwp_asan/tests/
Dalignment.cpp12 class AlignmentTestGPA : public gwp_asan::GuardedPoolAllocator {
16 return GuardedPoolAllocator::getRequiredBackingSize(Size, Alignment, in getRequiredBackingSize()
20 return GuardedPoolAllocator::alignUp(Ptr, Alignment); in alignUp()
23 return GuardedPoolAllocator::alignDown(Ptr, Alignment); in alignDown()
Dharness.h56 gwp_asan::GuardedPoolAllocator GPA;
79 gwp_asan::GuardedPoolAllocator GPA;
106 gwp_asan::GuardedPoolAllocator GPA;
Dbacktrace.cpp18 AllocateMemory(gwp_asan::GuardedPoolAllocator &GPA) { in AllocateMemory()
22 DeallocateMemory(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory()
26 DeallocateMemory2(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory2()
Dthread_contention.cpp18 void asyncTask(gwp_asan::GuardedPoolAllocator *GPA, in asyncTask()
46 gwp_asan::GuardedPoolAllocator *GPA) { in runThreadContentionTest()
Dslot_reuse.cpp13 void singleByteGoodAllocDealloc(gwp_asan::GuardedPoolAllocator *GPA) { in singleByteGoodAllocDealloc()
44 void runNoReuseBeforeNecessary(gwp_asan::GuardedPoolAllocator *GPA, in runNoReuseBeforeNecessary()
Dlate_init.cpp14 gwp_asan::GuardedPoolAllocator GPA; in TEST()
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Dharness.h55 gwp_asan::GuardedPoolAllocator GPA;
78 gwp_asan::GuardedPoolAllocator GPA;
105 gwp_asan::GuardedPoolAllocator GPA;
Dbacktrace.cpp18 AllocateMemory(gwp_asan::GuardedPoolAllocator &GPA) { in AllocateMemory()
22 DeallocateMemory(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory()
26 DeallocateMemory2(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory2()
Dthread_contention.cpp18 void asyncTask(gwp_asan::GuardedPoolAllocator *GPA, in asyncTask()
46 gwp_asan::GuardedPoolAllocator *GPA) { in runThreadContentionTest()
Dslot_reuse.cpp13 void singleByteGoodAllocDealloc(gwp_asan::GuardedPoolAllocator *GPA) { in singleByteGoodAllocDealloc()
44 void runNoReuseBeforeNecessary(gwp_asan::GuardedPoolAllocator *GPA, in runNoReuseBeforeNecessary()
Dlate_init.cpp14 gwp_asan::GuardedPoolAllocator GPA; in TEST()
/external/gwp_asan/gwp_asan/optional/
Dsegv_handler_posix.cpp28 using gwp_asan::GuardedPoolAllocator;
157 gwp_asan::GuardedPoolAllocator *GPAForSignalHandler;
197 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf, in installSignalHandlers()
Dsegv_handler_fuchsia.cpp15 void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */, in installSignalHandlers() argument
Dsegv_handler.h24 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf,
/external/llvm-project/compiler-rt/lib/gwp_asan/optional/
Dsegv_handler_posix.cpp23 using gwp_asan::GuardedPoolAllocator;
30 gwp_asan::GuardedPoolAllocator *GPAForSignalHandler;
139 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf, in installSignalHandlers()
Dsegv_handler_fuchsia.cpp15 void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */, in installSignalHandlers() argument
Dsegv_handler.h77 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf,

12