Lines Matching refs:Instance

669 static Allocator Instance(LINKER_INITIALIZED);
672 return Instance.Backend; in getBackend()
676 Instance.init(); in initScudo()
698 Instance.commitBack(this); in commitBack()
704 if (Instance.canReturnNull()) in scudoAllocate()
708 return SetErrnoOnNull(Instance.allocate(Size, Alignment, Type)); in scudoAllocate()
712 Instance.deallocate(Ptr, Size, Alignment, Type); in scudoDeallocate()
717 return SetErrnoOnNull(Instance.allocate(Size, MinAlignment, FromMalloc)); in scudoRealloc()
719 Instance.deallocate(Ptr, 0, 0, FromMalloc); in scudoRealloc()
722 return SetErrnoOnNull(Instance.reallocate(Ptr, Size)); in scudoRealloc()
726 return SetErrnoOnNull(Instance.calloc(NMemB, Size)); in scudoCalloc()
731 Instance.allocate(Size, GetPageSizeCached(), FromMemalign)); in scudoValloc()
738 if (Instance.canReturnNull()) in scudoPvalloc()
744 return SetErrnoOnNull(Instance.allocate(Size, PageSize, FromMemalign)); in scudoPvalloc()
749 if (!Instance.canReturnNull()) in scudoPosixMemalign()
753 void *Ptr = Instance.allocate(Size, Alignment, FromMemalign); in scudoPosixMemalign()
763 if (Instance.canReturnNull()) in scudoAlignedAlloc()
767 return SetErrnoOnNull(Instance.allocate(Size, Alignment, FromMalloc)); in scudoAlignedAlloc()
771 return Instance.getUsableSize(Ptr); in scudoMallocUsableSize()
781 return Instance.getStats(AllocatorStatAllocated); in __sanitizer_get_current_allocated_bytes()
785 return Instance.getStats(AllocatorStatMapped); in __sanitizer_get_heap_size()
801 return Instance.isValidPointer(Ptr); in __sanitizer_get_ownership()
805 return Instance.getUsableSize(Ptr); in __sanitizer_get_allocated_size()
825 Instance.setRssLimit(LimitMb, !!HardLimit); in __scudo_set_rss_limit()
829 Instance.printStats(); in __scudo_print_stats()