Lines Matching refs:GuardedAlloc
49 static gwp_asan::GuardedPoolAllocator GuardedAlloc; variable
71 GuardedAlloc.init(Opts); in gwp_asan_initialize()
76 __libc_shared_globals()->gwp_asan_state = GuardedAlloc.getAllocatorState(); in gwp_asan_initialize()
77 __libc_shared_globals()->gwp_asan_metadata = GuardedAlloc.getMetadataRegion(); in gwp_asan_initialize()
111 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_calloc()
114 if (void* result = GuardedAlloc.allocate(bytes)) { in gwp_asan_calloc()
123 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_free()
124 GuardedAlloc.deallocate(mem); in gwp_asan_free()
131 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_malloc()
132 if (void* result = GuardedAlloc.allocate(bytes)) { in gwp_asan_malloc()
140 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_malloc_usable_size()
141 return GuardedAlloc.getSize(mem); in gwp_asan_malloc_usable_size()
147 if (__predict_false(GuardedAlloc.pointerIsMine(old_mem))) { in gwp_asan_realloc()
148 size_t old_size = GuardedAlloc.getSize(old_mem); in gwp_asan_realloc()
151 GuardedAlloc.deallocate(old_mem); in gwp_asan_realloc()
159 if (__predict_false(GuardedAlloc.pointerIsMine(reinterpret_cast<void*>(base)))) { in gwp_asan_malloc_iterate()
162 GuardedAlloc.iterate(reinterpret_cast<void*>(base), size, callback, arg); in gwp_asan_malloc_iterate()
169 GuardedAlloc.disable(); in gwp_asan_malloc_disable()
174 GuardedAlloc.enable(); in gwp_asan_malloc_enable()