| /src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/ |
| allocator_test.cc | 28 TEST(AllocatorTest, Allocate) { 30 auto B = A.Allocate(); 36 auto B1 = A.Allocate(); 38 auto B2 = A.Allocate(); 54 for (auto B = A.Allocate(); B.Data != nullptr; B = A.Allocate(), ++C) 73 for (auto B = A.Allocate(); B.Data != nullptr; B = A.Allocate(), ++C)
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| AllocatorBase.h | 11 /// "Allocator" concept which consists of an Allocate method accepting a size 13 /// LLVM "Allocator" concept has overloads of Allocate and Deallocate for 28 /// Allocate() methods of LLVM-style allocators. 35 /// Allocate \a Size bytes of \a Alignment aligned memory. This method 37 void *Allocate(size_t Size, size_t Alignment) { 40 &AllocatorBase::Allocate) != 42 &DerivedT::Allocate), 44 "core Allocate(size_t, size_t) overload!"); 46 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); 67 /// Allocate space for a sequence of objects without constructing them [all...] |
| RecyclingAllocator.h | 39 /// Allocate - Return a pointer to storage for an object of type 43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } 45 T *Allocate() { return Base.Allocate(Allocator); } 66 return Allocator.Allocate();
|
| Recycler.h | 83 SubClass *Allocate(AllocatorType &Allocator) { 89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); 93 T *Allocate(AllocatorType &Allocator) { 94 return Allocate<T>(Allocator);
|
| Allocator.h | 48 /// Allocate memory in an ever growing pool, as if by bump-pointer. 60 /// object, which wraps malloc, to allocate memory, but it can be changed to 143 /// Allocate space at the specified alignment. 145 Allocate(size_t Size, Align Alignment) { 171 // If Size is really big, allocate a separate slab for it. 175 AllocatorT::Allocate(PaddedSize, alignof(std::max_align_t)); 193 "Unable to allocate memory!"); 202 Allocate(size_t Size, size_t Alignment) { 204 return Allocate(Size, Align(Alignment)); 208 using AllocatorBase<BumpPtrAllocatorImpl>::Allocate; [all...] |
| /src/external/apache2/llvm/dist/libcxx/benchmarks/ |
| allocation.bench.cpp | 21 static void* Allocate(size_t N) { 32 static void* Allocate(size_t N) { 43 static void* Allocate(size_t N) { 54 static void* Allocate(size_t N) { 68 void* p = AllocWrapper::Allocate(alloc_size); 81 PointerList* p = (PointerList*)AllocWrapper::Allocate(alloc_size); 103 p = AllocWrapper::Allocate(alloc_size);
|
| /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_dlsym.h | 9 // Hack: Sanitizer initializer calls dlsym which may need to allocate and call 34 static void *Allocate(uptr size_in_bytes) { 58 return Allocate(new_size); 66 void *new_ptr = Allocate(new_size);
|
| sanitizer_allocator_combined.h | 18 // PrimaryAllocator is efficient, but may not allocate some sizes (alignments). 21 // SecondaryAllocator can allocate anything, but is not efficient. 44 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { 69 res = cache->Allocate(&primary_, primary_.ClassID(size)); 71 res = secondary_.Allocate(&stats_, original_size, alignment); 100 return Allocate(cache, new_size, alignment); 108 void *new_p = Allocate(cache, new_size, alignment);
|
| sanitizer_allocator.cpp | 54 return internal_allocator()->Allocate(&internal_allocator_cache, size, 57 return internal_allocator()->Allocate(cache, size, alignment); 81 Report("FATAL: %s: internal allocator is out of memory trying to allocate " 149 void *LowLevelAllocator::Allocate(uptr size) {
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_dlsym.h | 9 // Hack: Sanitizer initializer calls dlsym which may need to allocate and call 34 static void *Allocate(uptr size_in_bytes) { 58 return Allocate(new_size); 66 void *new_ptr = Allocate(new_size);
|
| sanitizer_allocator_combined.h | 18 // PrimaryAllocator is efficient, but may not allocate some sizes (alignments). 21 // SecondaryAllocator can allocate anything, but is not efficient. 44 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { 69 res = cache->Allocate(&primary_, primary_.ClassID(size)); 71 res = secondary_.Allocate(&stats_, original_size, alignment); 100 return Allocate(cache, new_size, alignment); 108 void *new_p = Allocate(cache, new_size, alignment);
|
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| DeclGroup.cpp | 23 void *Mem = C.Allocate(Size, alignof(DeclGroup));
|
| StmtObjC.cpp | 52 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); 62 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt));
|
| StmtCXX.cpp | 28 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); 35 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); 91 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); 100 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); 118 SubStmts[CoroutineBodyStmt::Allocate] = Args.Allocate;
|
| OpenMPClause.cpp | 328 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); 340 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); 385 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), 400 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), 417 // Allocate space for private variables and initializer expressions. 418 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); 428 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); 449 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); 461 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); 499 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())) [all...] |
| ExprConcepts.cpp | 81 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( 120 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( 130 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( 200 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( 211 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>(
|
| ExprCXX.cpp | 256 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( 270 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( 376 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); 394 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); 407 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); 486 void *Mem = Context.Allocate(Size); 499 void *Mem = Context.Allocate(Size); 562 // Allocate storage for the trailing objects of CallExpr. 566 void *Mem = Ctx.Allocate(sizeof(CXXOperatorCallExpr) + SizeOfTrailingObjects, 576 // Allocate storage for the trailing objects of CallExpr [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Support/ |
| StringSaver.cpp | 14 char *P = Alloc.Allocate<char>(S.size() + 1);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_allocator_combined.h | 19 // PrimaryAllocator is efficient, but may not allocate some sizes (alignments). 22 // SecondaryAllocator can allocate anything, but is not efficient. 48 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { 73 res = cache->Allocate(&primary_, primary_.ClassID(size)); 75 res = secondary_.Allocate(&stats_, original_size, alignment); 104 return Allocate(cache, new_size, alignment); 112 void *new_p = Allocate(cache, new_size, alignment);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| sanitizer_allocator_testlib.cc | 107 void *p = allocator.Allocate(&cache, size, 8); 123 void *p = allocator.Allocate(&cache, size, 8, false); 146 void *p = allocator.Allocate(&cache, size, alignment); 155 *memptr = allocator.Allocate(&cache, size, alignment); 165 void *p = allocator.Allocate(&cache, size, GetPageSizeCached());
|
| /src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
| lsan_allocator.cc | 73 Report("WARNING: LeakSanitizer failed to allocate 0x%zx bytes\n", size); 79 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 85 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); 108 return Allocate(stack, size, 1, true); 148 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); 150 // OOM error is already taken care of by Allocate. 164 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 174 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 178 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); 195 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)) [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/lsan/ |
| lsan_allocator.cpp | 79 Report("WARNING: LeakSanitizer failed to allocate 0x%zx bytes\n", size); 85 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 91 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); 114 return Allocate(stack, size, 1, true); 158 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); 160 // OOM error is already taken care of by Allocate. 174 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 184 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 188 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); 216 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)) [all...] |
| /src/external/gpl3/gcc/dist/libsanitizer/lsan/ |
| lsan_allocator.cpp | 84 Report("WARNING: LeakSanitizer failed to allocate 0x%zx bytes\n", size); 90 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); 122 return Allocate(stack, size, 1, true); 186 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); 188 // OOM error is already taken care of by Allocate. 202 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 212 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); 216 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); 244 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)) [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
| asan_fake_stack_test.cc | 106 TEST(FakeStack, Allocate) { 116 FakeFrame *ff = fs->Allocate(stack_size_log, cid, 0); 124 // We are out of fake stack, so Allocate should return 0. 125 EXPECT_EQ(0UL, fs->Allocate(stack_size_log, cid, 0)); 137 FakeFrame *ff = fs->Allocate(fs->stack_size_log(), class_id, 0);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| PredIteratorCache.h | 52 Entry = Memory.Allocate<BasicBlock *>(PredCache.size());
|