Lines Matching refs:allocation
390 MapAllocation* allocation = reinterpret_cast<MapAllocation*>(AllocLocked(sizeof(MapAllocation))); in MapAlloc() local
393 FreeLocked(allocation); in MapAlloc()
396 allocation->ptr = ptr; in MapAlloc()
397 allocation->size = size; in MapAlloc()
398 allocation->next = map_allocation_list_; in MapAlloc()
399 map_allocation_list_ = allocation; in MapAlloc()
405 MapAllocation** allocation = &map_allocation_list_; in MapFree() local
406 while (*allocation && (*allocation)->ptr != ptr) allocation = &(*allocation)->next; in MapFree()
408 assert(*allocation != nullptr); in MapFree()
410 munmap((*allocation)->ptr, (*allocation)->size); in MapFree()
411 FreeLocked(*allocation); in MapFree()
413 *allocation = (*allocation)->next; in MapFree()