Home
last modified time | relevance | path

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

/aosp12/bionic/libc/bionic/
H A Dgwp_asan_wrappers.cpp49 static gwp_asan::GuardedPoolAllocator GuardedAlloc; variable
71 GuardedAlloc.init(Opts); in gwp_asan_initialize()
111 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_calloc()
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()
141 return GuardedAlloc.getSize(mem); in gwp_asan_malloc_usable_size()
148 size_t old_size = GuardedAlloc.getSize(old_mem); in gwp_asan_realloc()
151 GuardedAlloc.deallocate(old_mem); in gwp_asan_realloc()
169 GuardedAlloc.disable(); in gwp_asan_malloc_disable()
[all …]