Lines Matching refs:Instance

622 static Allocator Instance(LINKER_INITIALIZED);
625 return Instance.Backend; in getBackend()
629 Instance.init(); in initScudo()
638 Instance.commitBack(this); in commitBack()
644 if (Instance.canReturnNull()) in scudoAllocate()
648 return SetErrnoOnNull(Instance.allocate(Size, Alignment, Type)); in scudoAllocate()
652 Instance.deallocate(Ptr, Size, Alignment, Type); in scudoDeallocate()
657 return SetErrnoOnNull(Instance.allocate(Size, MinAlignment, FromMalloc)); in scudoRealloc()
659 Instance.deallocate(Ptr, 0, 0, FromMalloc); in scudoRealloc()
662 return SetErrnoOnNull(Instance.reallocate(Ptr, Size)); in scudoRealloc()
666 return SetErrnoOnNull(Instance.calloc(NMemB, Size)); in scudoCalloc()
671 Instance.allocate(Size, GetPageSizeCached(), FromMemalign)); in scudoValloc()
678 if (Instance.canReturnNull()) in scudoPvalloc()
684 return SetErrnoOnNull(Instance.allocate(Size, PageSize, FromMemalign)); in scudoPvalloc()
689 if (!Instance.canReturnNull()) in scudoPosixMemalign()
693 void *Ptr = Instance.allocate(Size, Alignment, FromMemalign); in scudoPosixMemalign()
703 if (Instance.canReturnNull()) in scudoAlignedAlloc()
707 return SetErrnoOnNull(Instance.allocate(Size, Alignment, FromMalloc)); in scudoAlignedAlloc()
711 return Instance.getUsableSize(Ptr); in scudoMallocUsableSize()
721 return Instance.getStats(AllocatorStatAllocated); in __sanitizer_get_current_allocated_bytes()
725 return Instance.getStats(AllocatorStatMapped); in __sanitizer_get_heap_size()
741 return Instance.isValidPointer(Ptr); in __sanitizer_get_ownership()
745 return Instance.getUsableSize(Ptr); in __sanitizer_get_allocated_size()
765 Instance.setRssLimit(LimitMb, !!HardLimit); in __scudo_set_rss_limit()
769 Instance.printStats(); in __scudo_print_stats()