Lines Matching refs:allocation
263 LargeAllocation* allocation = new(std::nothrow) LargeAllocation;
264 if (allocation == NULL) {
269 if (allocation->Allocate(size) != B_OK) {
271 delete allocation;
275 sLargeAllocations.InsertUnchecked(allocation);
276 TRACE("malloc_large(%lu) -> %p\n", size, allocation->Address());
277 return allocation->Address();
284 LargeAllocation* allocation = sLargeAllocations.Lookup(address);
285 if (allocation == NULL)
286 panic("free_large(%p): unknown allocation!\n", address);
288 sLargeAllocations.RemoveUnchecked(allocation);
289 allocation->Free();
290 delete allocation;
519 LargeAllocation* allocation = sLargeAllocations.Lookup(oldBuffer);
520 if (allocation == NULL) {
521 panic("realloc(%p, %zu): unknown allocation!\n", oldBuffer,
525 oldSize = allocation->Size();