Lines Matching full:allocation
127 #error "Page based allocation not implemented for this platform"
185 auto allocation = malloc(allocSize); in alignedMalloc() local
187 reinterpret_cast<uintptr_t>(allocation), alignment)); // align in alignedMalloc()
188 memcpy(aligned + size, &allocation, sizeof(void*)); // pointer-to-allocation in alignedMalloc()
203 virtual marl::Allocation allocate( in allocate()
204 const marl::Allocation::Request& request) override { in allocate()
215 MARL_ASSERT(ptr != nullptr, "Allocation failed"); in allocate()
217 "Allocation gave incorrect alignment"); in allocate()
219 marl::Allocation allocation; in allocate() local
220 allocation.ptr = ptr; in allocate()
221 allocation.request = request; in allocate()
222 return allocation; in allocate()
225 virtual void free(const marl::Allocation& allocation) override { in free() argument
226 if (allocation.request.useGuards) { in free()
227 ::pagedFree(allocation.ptr, allocation.request.alignment, in free()
228 allocation.request.size, true, true); in free()
229 } else if (allocation.request.alignment > 1U) { in free()
230 ::alignedFree(allocation.ptr, allocation.request.size); in free()
232 ::free(allocation.ptr); in free()