Lines Matching refs:allocator

11 // HWAddressSanitizer allocator.
28 static Allocator allocator;
37 // Either just allocated by underlying allocator, but AsanChunk is not yet
38 // ready, or almost returned to undelying allocator and AsanChunk is already
72 return allocator.GetActuallyAllocatedSize(reinterpret_cast<void *>(block_));
76 return allocator.FromPrimary(reinterpret_cast<void *>(block_));
120 allocator.GetStats(s);
152 allocator.InitLinkerInitialized(
165 void HwasanAllocatorLock() { allocator.ForceLock(); }
167 void HwasanAllocatorUnlock() { allocator.ForceUnlock(); }
169 void AllocatorThreadStart(AllocatorCache *cache) { allocator.InitCache(cache); }
172 allocator.SwallowCache(cache);
173 allocator.DestroyCache(cache);
207 allocated = allocator.Allocate(t->allocator_cache(), size, alignment);
211 allocated = allocator.Allocate(cache, size, alignment);
220 // The secondary allocator mmaps memory, which should be zero-inited so we
222 if (allocator.FromPrimary(allocated))
257 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated));
302 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr));
345 allocator.FromPrimary(untagged_ptr) /* Secondary 0-tag and unmap.*/) {
365 allocator.Deallocate(t->allocator_cache(), aligned_ptr);
373 allocator.Deallocate(cache, aligned_ptr);
386 reinterpret_cast<Metadata *>(allocator.GetMetaData(untagged_ptr_old));
405 if (!allocator.PointerIsMine(reinterpret_cast<void *>(address)))
407 void *block = allocator.GetBlockBegin(reinterpret_cast<void*>(address));
411 reinterpret_cast<Metadata*>(allocator.GetMetaData(block));
420 const void *beg = allocator.GetBlockBegin(untagged_ptr);
424 Metadata *b = (Metadata *)allocator.GetMetaData(beg);
435 const void *beg = allocator.GetBlockBegin(untagged_ptr);
438 Metadata *b = (Metadata *)allocator.GetMetaData(beg);
447 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr));
551 *begin = (uptr)&__hwasan::allocator;
552 *end = *begin + sizeof(__hwasan::allocator);
559 reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBeginFastLocked(p));
563 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk)));
575 void *block = __hwasan::allocator.GetBlockBeginFastLocked(
580 __hwasan::allocator.GetMetaData(block));
597 chunk ? __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk))
629 __hwasan::allocator.ForEachChunk(callback, arg);
635 uptr chunk = reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p));
639 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk)));
665 allocator.GetStats(stats);
671 allocator.GetStats(stats);
696 void __sanitizer_purge_allocator() { allocator.ForceReleaseToOS(); }