Searched refs:GuardedAlloc (Results 1 – 2 of 2) sorted by relevance
224 static gwp_asan::GuardedPoolAllocator GuardedAlloc; variable315 if (UNLIKELY(GuardedAlloc.shouldSample())) { in allocate()316 if (void *Ptr = GuardedAlloc.allocate(Size, Alignment)) { in allocate()461 if (UNLIKELY(GuardedAlloc.pointerIsMine(Ptr))) { in deallocate()462 GuardedAlloc.deallocate(Ptr); in deallocate()498 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) { in reallocate()499 size_t OldSize = GuardedAlloc.getSize(OldPtr); in reallocate()503 GuardedAlloc.deallocate(OldPtr); in reallocate()551 if (UNLIKELY(GuardedAlloc.pointerIsMine(Ptr))) in getUsableSize()552 return GuardedAlloc.getSize(Ptr); in getUsableSize()[all …]
193 GuardedAlloc.init(Opt); in initGwpAsan()197 &GuardedAlloc, Printf, in initGwpAsan()202 GuardedAlloc.getAllocatorState()->maximumAllocationSize(); in initGwpAsan()219 GuardedAlloc.uninitTestOnly(); in unmapTestOnly()303 if (UNLIKELY(GuardedAlloc.shouldSample())) {304 if (void *Ptr = GuardedAlloc.allocate(Size, Alignment)) {520 if (UNLIKELY(GuardedAlloc.pointerIsMine(Ptr))) {521 GuardedAlloc.deallocate(Ptr);577 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) {578 uptr OldSize = GuardedAlloc.getSize(OldPtr);[all …]