| /external/llvm-project/compiler-rt/lib/xray/ |
| D | xray_allocator.h | 164 template <size_t N> struct Allocator { struct 166 struct Block { 174 unsigned char *BackingStore = nullptr; 175 unsigned char *AlignedNextBlock = nullptr; 176 size_t AllocatedBlocks = 0; 177 bool Owned; 180 void *Alloc() XRAY_NEVER_INSTRUMENT { in Alloc() 225 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMENT in Allocator() argument 233 explicit Allocator(void *P, size_t M) XRAY_NEVER_INSTRUMENT in Allocator() function 242 Allocator &operator=(const Allocator &) = delete; argument [all …]
|
| /external/llvm-project/flang/runtime/ |
| D | memory.h | 61 template <typename A> struct Allocator { struct 63 explicit Allocator(const Terminator &t) : terminator{t} {} in Allocator() argument 65 explicit constexpr Allocator(const Allocator<B> &that) noexcept in Allocator() argument 69 [[nodiscard]] constexpr A *allocate(std::size_t n) { in allocate() 73 constexpr void deallocate(A *p, std::size_t) { FreeMemory(p); } in deallocate() 74 const Terminator &terminator;
|
| /external/llvm-project/compiler-rt/lib/scudo/ |
| D | scudo_allocator.cpp | 227 struct Allocator { struct 228 static const uptr MaxAllowedMallocSize = 231 BackendT Backend; 232 QuarantineT Quarantine; 234 u32 QuarantineChunksUpToSize; 236 bool DeallocationTypeMismatch; 237 bool ZeroContents; 238 bool DeleteSizeMismatch; 240 bool CheckRssLimit; 241 uptr HardRssLimitMb; [all …]
|
| /external/compiler-rt/lib/asan/ |
| D | asan_allocator.cc | 224 struct Allocator { struct 225 static const uptr kMaxAllowedMallocSize = 227 static const uptr kMaxThreadLocalQuarantine = 230 AsanAllocator allocator; 231 AsanQuarantine quarantine; 232 StaticSpinMutex fallback_mutex; 233 AllocatorCache fallback_allocator_cache; 234 QuarantineCache fallback_quarantine_cache; 237 atomic_uint16_t min_redzone; 238 atomic_uint16_t max_redzone; [all …]
|
| /external/llvm-project/compiler-rt/lib/asan/ |
| D | asan_allocator.cpp | 298 struct Allocator { struct 299 static const uptr kMaxAllowedMallocSize = 302 AsanAllocator allocator; 303 AsanQuarantine quarantine; 304 StaticSpinMutex fallback_mutex; 305 AllocatorCache fallback_allocator_cache; 306 QuarantineCache fallback_quarantine_cache; 308 uptr max_user_defined_malloc_size; 309 atomic_uint8_t rss_limit_exceeded; 312 atomic_uint16_t min_redzone; [all …]
|
| /external/compiler-rt/lib/scudo/ |
| D | scudo_allocator.cpp | 264 struct Allocator { struct 265 static const uptr MaxAllowedMallocSize = 1ULL << 40; 266 static const uptr MinAlignment = 1 << MinAlignmentLog; 267 static const uptr MaxAlignment = 1 << MaxAlignmentLog; // 16 MB 269 ScudoAllocator BackendAllocator; 270 ScudoQuarantine AllocatorQuarantine; 275 StaticSpinMutex FallbackMutex; 276 AllocatorCache FallbackAllocatorCache; 277 QuarantineCache FallbackQuarantineCache; 279 bool DeallocationTypeMismatch; [all …]
|
| /external/llvm-project/compiler-rt/lib/memprof/ |
| D | memprof_allocator.cpp | 447 struct Allocator { struct 448 static const uptr kMaxAllowedMallocSize = 1ULL << kMaxAllowedMallocBits; 450 MemprofAllocator allocator; 451 StaticSpinMutex fallback_mutex; 452 AllocatorCache fallback_allocator_cache; 454 uptr max_user_defined_malloc_size; 455 atomic_uint8_t rss_limit_exceeded; 457 MemInfoBlockCache MemInfoBlockTable; 458 bool destructing; 461 explicit Allocator(LinkerInitialized) : destructing(false) {} in Allocator() function [all …]
|
| /external/swiftshader/third_party/subzero/src/ |
| D | IceMemory.cpp | 32 ArenaAllocator *Allocator = in set_current() local 37 void CfgAllocatorTraits::set_current(ArenaAllocator *Allocator) { in set_current() 53 ArenaAllocator *Allocator = in set_current() local
|
| /external/scudo/standalone/tests/ |
| D | combined_test.cpp | 46 void checkMemoryTaggingMaybe(AllocatorT *Allocator, void *P, scudo::uptr Size, in checkMemoryTaggingMaybe() 103 std::unique_ptr<AllocatorT> Allocator; member 130 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 146 auto *Allocator = this->Allocator.get(); in BasicTest() local 177 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 194 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 212 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 239 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 257 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local 278 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local [all …]
|
| D | tsd_test.cpp | 70 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local 85 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistry() local 122 template <typename AllocatorT> static void stressCache(AllocatorT *Allocator) { in stressCache() 154 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistryThreaded() local 179 static void stressSharedRegistry(MockAllocator<SharedCaches> *Allocator) { in stressSharedRegistry() 210 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/MSF/ |
| D | MappedBlockStream.cpp | 48 BumpPtrAllocator &Allocator) in MappedBlockStream() 54 BumpPtrAllocator &Allocator) { in createStream() 61 BumpPtrAllocator &Allocator) { in createIndexedStream() 73 BumpPtrAllocator &Allocator) { in createDirectoryStream() 83 BumpPtrAllocator &Allocator) { in createFpmStream() 312 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator) in WritableMappedBlockStream() 320 BumpPtrAllocator &Allocator) { in createStream() 329 BumpPtrAllocator &Allocator) { in createIndexedStream() 340 BumpPtrAllocator &Allocator) { in createDirectoryStream() 350 BumpPtrAllocator &Allocator, in createFpmStream()
|
| /external/llvm-project/llvm/lib/DebugInfo/MSF/ |
| D | MappedBlockStream.cpp | 48 BumpPtrAllocator &Allocator) in MappedBlockStream() 54 BumpPtrAllocator &Allocator) { in createStream() 61 BumpPtrAllocator &Allocator) { in createIndexedStream() 73 BumpPtrAllocator &Allocator) { in createDirectoryStream() 83 BumpPtrAllocator &Allocator) { in createFpmStream() 312 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator) in WritableMappedBlockStream() 320 BumpPtrAllocator &Allocator) { in createStream() 329 BumpPtrAllocator &Allocator) { in createIndexedStream() 340 BumpPtrAllocator &Allocator) { in createDirectoryStream() 350 BumpPtrAllocator &Allocator, in createFpmStream()
|
| /external/llvm/include/llvm/Support/ |
| D | Recycler.h | 67 void clear(AllocatorType &Allocator) { in clear() 82 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() 92 T *Allocate(AllocatorType &Allocator) { in Allocate()
|
| D | RecyclingAllocator.h | 35 AllocatorType Allocator; variable 65 T, Size, Align> &Allocator) { in new()
|
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
| D | Recycler.h | 68 void clear(AllocatorType &Allocator) { in clear() 83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() 93 T *Allocate(AllocatorType &Allocator) { in Allocate()
|
| D | RecyclingAllocator.h | 34 AllocatorType Allocator; variable 64 T, Size, Align> &Allocator) { in new()
|
| D | TargetRegistry.h | 952 static MCAsmInfo *Allocator(const MCRegisterInfo & /*MRI*/, const Triple &TT, in Allocator() function 986 static MCInstrInfo *Allocator() { return new MCInstrInfoImpl(); } in Allocator() function 1017 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function 1050 static MCRegisterInfo *Allocator(const Triple & /*TT*/) { in Allocator() function 1083 static MCSubtargetInfo *Allocator(const Triple & /*TT*/, StringRef /*CPU*/, in Allocator() function 1118 Allocator(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, in Allocator() function 1138 static MCAsmBackend *Allocator(const Target &T, const MCSubtargetInfo &STI, in Allocator() function 1159 static MCTargetAsmParser *Allocator(const MCSubtargetInfo &STI, in Allocator() function 1180 static AsmPrinter *Allocator(TargetMachine &TM, in Allocator() function 1200 static MCCodeEmitter *Allocator(const MCInstrInfo & /*II*/, in Allocator() function
|
| /external/llvm-project/llvm/include/llvm/Support/ |
| D | Recycler.h | 68 void clear(AllocatorType &Allocator) { in clear() 83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() 93 T *Allocate(AllocatorType &Allocator) { in Allocate()
|
| D | RecyclingAllocator.h | 34 AllocatorType Allocator; variable 64 T, Size, Align> &Allocator) { in new()
|
| /external/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
| D | tsd_test.cpp | 70 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local 85 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistry() local 122 template <typename AllocatorT> static void stressCache(AllocatorT *Allocator) { in stressCache() 154 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistryThreaded() local 179 static void stressSharedRegistry(MockAllocator<SharedCaches> *Allocator) { in stressSharedRegistry() 209 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local
|
| D | primary_test.cpp | 30 std::unique_ptr<Primary, decltype(Deleter)> Allocator(new Primary, Deleter); in testPrimary() local 70 Primary Allocator; in TEST() local 108 std::unique_ptr<Primary, decltype(Deleter)> Allocator(new Primary, Deleter); in testIteratePrimary() local 156 template <typename Primary> static void performAllocations(Primary *Allocator) { in performAllocations() 186 std::unique_ptr<Primary, decltype(Deleter)> Allocator(new Primary, Deleter); in testPrimaryThreaded() local 222 std::unique_ptr<Primary, decltype(Deleter)> Allocator(new Primary, Deleter); in testReleaseToOS() local
|
| D | combined_test.cpp | 37 bool isTaggedAllocation(AllocatorT *Allocator, scudo::uptr Size, in isTaggedAllocation() 53 void checkMemoryTaggingMaybe(AllocatorT *Allocator, void *P, scudo::uptr Size, in checkMemoryTaggingMaybe() 83 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in testAllocator() local 363 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in testAllocatorThreaded() local 410 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in TEST() local 445 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in TEST() local 454 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in TEST() local 485 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in TEST() local 524 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT()); in TEST() local
|
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | OrcRemoteTargetServer.h | 107 struct Allocator { struct 109 Allocator(Allocator &&Other) : Allocs(std::move(Other.Allocs)) {} in Allocator() argument 116 ~Allocator() { in ~Allocator() argument 121 Error allocate(void *&Addr, size_t Size, uint32_t Align) { in allocate() 134 Error setProtections(void *block, unsigned Flags) { in setProtections() 382 auto &Allocator = I->second; in handleReserveMem() local 403 auto &Allocator = I->second; in handleSetProtections() local
|
| /external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | OrcRemoteTargetServer.h | 109 struct Allocator { struct 111 Allocator(Allocator &&Other) : Allocs(std::move(Other.Allocs)) {} in Allocator() argument 118 ~Allocator() { in ~Allocator() argument 123 Error allocate(void *&Addr, size_t Size, uint32_t Align) { in allocate() 136 Error setProtections(void *block, unsigned Flags) { in setProtections() 396 auto &Allocator = I->second; in handleReserveMem() local 417 auto &Allocator = I->second; in handleSetProtections() local
|
| /external/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | OrcRemoteTargetServer.h | 134 struct Allocator { struct 136 Allocator(Allocator &&Other) : Allocs(std::move(Other.Allocs)) {} in Allocator() argument 142 ~Allocator() { in ~Allocator() argument 147 Error allocate(void *&Addr, size_t Size, uint32_t Align) { in allocate() 160 Error setProtections(void *block, unsigned Flags) { in setProtections() 392 auto &Allocator = I->second; in handleReserveMem() local 411 auto &Allocator = I->second; in handleSetProtections() local
|