HomeSort by: relevance | last modified time | path
    Searched defs:Allocate (Results 1 - 25 of 34) sorted by relevancy

1 2

  /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/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_local_cache.h 34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
142 return (TransferBatch*)Allocate(allocator, batch_class_id);
159 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
260 // Failure to allocate a batch while releasing memory is non recoverable.
263 Report("FATAL: Internal error: %s's allocator failed to allocate a "
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) {
sanitizer_allocator_secondary.h 66 // This class can (de)allocate only large chunks of memory using mmap/unmap.
85 void *Allocate(AllocatorStats *stat, const uptr size, uptr alignment) {
  /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);
sanitizer_allocator_local_cache.h 34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
142 return (TransferBatch*)Allocate(allocator, batch_class_id);
159 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
260 // Failure to allocate a batch while releasing memory is non recoverable.
263 Report("FATAL: Internal error: %s's allocator failed to allocate a "
sanitizer_allocator.cpp 113 return internal_allocator()->Allocate(&internal_allocator_cache, size,
116 return internal_allocator()->Allocate(cache, size, alignment);
142 Report("FATAL: %s: internal allocator is out of memory trying to allocate "
195 void *LowLevelAllocator::Allocate(uptr size) {
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
sanitizer_quarantine_test.cc 23 void *Allocate(uptr size) {
  /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/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);
sanitizer_allocator_local_cache.h 41 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
143 return (TransferBatch*)Allocate(allocator, batch_class_id);
160 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
261 // Failure to allocate a batch while releasing memory is non recoverable.
264 Report("FATAL: Internal error: %s's allocator failed to allocate a "
sanitizer_allocator.cc 114 return internal_allocator()->Allocate(&internal_allocator_cache, size,
117 return internal_allocator()->Allocate(cache, size, alignment);
145 Report("FATAL: %s: internal allocator is out of memory trying to allocate "
201 void *LowLevelAllocator::Allocate(uptr size) {
sanitizer_allocator_secondary.h 67 // This class can (de)allocate only large chunks of memory using mmap/unmap.
86 void *Allocate(AllocatorStats *stat, uptr size, uptr alignment) {
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_fake_stack.cc 88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id,
207 FakeFrame *ff = fs->Allocate(fs->stack_size_log(), class_id, real_stack);
  /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/dist/libsanitizer/asan/
asan_fake_stack.cpp 88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id,
229 fs->Allocate(fs->stack_size_log(), class_id, GET_CURRENT_FRAME());
242 fs->Allocate(fs->stack_size_log(), class_id, GET_CURRENT_FRAME());
  /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/external/gpl3/gcc.old/dist/libsanitizer/asan/
asan_fake_stack.cpp 88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id,
213 FakeFrame *ff = fs->Allocate(fs->stack_size_log(), class_id, real_stack);
226 FakeFrame *ff = fs->Allocate(fs->stack_size_log(), class_id, real_stack);
  /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...]

Completed in 30 milliseconds

1 2