Lines Matching refs:Instance
670 static Allocator Instance(LINKER_INITIALIZED);
673 return Instance.Backend; in getBackend()
677 Instance.init(); in initScudo()
699 Instance.commitBack(this); in commitBack()
705 if (Instance.canReturnNull()) in scudoAllocate()
709 return SetErrnoOnNull(Instance.allocate(Size, Alignment, Type)); in scudoAllocate()
713 Instance.deallocate(Ptr, Size, Alignment, Type); in scudoDeallocate()
718 return SetErrnoOnNull(Instance.allocate(Size, MinAlignment, FromMalloc)); in scudoRealloc()
720 Instance.deallocate(Ptr, 0, 0, FromMalloc); in scudoRealloc()
723 return SetErrnoOnNull(Instance.reallocate(Ptr, Size)); in scudoRealloc()
727 return SetErrnoOnNull(Instance.calloc(NMemB, Size)); in scudoCalloc()
732 Instance.allocate(Size, GetPageSizeCached(), FromMemalign)); in scudoValloc()
739 if (Instance.canReturnNull()) in scudoPvalloc()
745 return SetErrnoOnNull(Instance.allocate(Size, PageSize, FromMemalign)); in scudoPvalloc()
750 if (!Instance.canReturnNull()) in scudoPosixMemalign()
754 void *Ptr = Instance.allocate(Size, Alignment, FromMemalign); in scudoPosixMemalign()
764 if (Instance.canReturnNull()) in scudoAlignedAlloc()
768 return SetErrnoOnNull(Instance.allocate(Size, Alignment, FromMalloc)); in scudoAlignedAlloc()
772 return Instance.getUsableSize(Ptr); in scudoMallocUsableSize()
782 return Instance.getStats(AllocatorStatAllocated); in __sanitizer_get_current_allocated_bytes()
786 return Instance.getStats(AllocatorStatMapped); in __sanitizer_get_heap_size()
802 return Instance.isValidPointer(Ptr); in __sanitizer_get_ownership()
806 return Instance.getUsableSize(Ptr); in __sanitizer_get_allocated_size()
826 Instance.setRssLimit(LimitMb, !!HardLimit); in __scudo_set_rss_limit()
830 Instance.printStats(); in __scudo_print_stats()