HeapAllocatorDeinit
Description
Release every page chunk currently owned by self. After this call the heap is back to its post-HeapAllocatorInit state and any pointer previously returned by AllocatorAlloc through this heap is invalid.
Parameters
| Name | Direction | Description |
|---|---|---|
self |
in,out | Heap allocator instance. |
Success
Function returns. Owned pages have been unmapped.
Failure
No action when self is NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
}
HeapAllocatorDeinit(&heap);
return ok;
} AllocatorFree(alloc, p, 64);
}
HeapAllocatorDeinit(&heap);
return ok;
} AllocatorFree(alloc, b, 32);
}
HeapAllocatorDeinit(&heap);
return ok;
} }
HeapAllocatorDeinit(&heap);
return ok;
} }
HeapAllocatorDeinit(&heap);
return ok;
} }
HeapAllocatorDeinit(&heap);
return ok;
} AllocatorFree(alloc, p, 256);
}
HeapAllocatorDeinit(&heap);
return ok;
} AllocatorFree(alloc1, a, 32);
AllocatorFree(alloc2, b, 32);
HeapAllocatorDeinit(&h1);
HeapAllocatorDeinit(&h2);
return ok; AllocatorFree(alloc2, b, 32);
HeapAllocatorDeinit(&h1);
HeapAllocatorDeinit(&h2);
return ok;
}- In
Vec.Init.c:107:
VecDeinit(&test_vec);
HeapAllocatorDeinit(&aligned4);
HeapAllocatorDeinit(&aligned16);
return result;- In
Vec.Init.c:108:
HeapAllocatorDeinit(&aligned4);
HeapAllocatorDeinit(&aligned16);
return result;
}- In
Vec.Init.c:149:
VecDeinit(&vec);
HeapAllocatorDeinit(&aligned8);
return result;
}- In
Vec.Init.c:201:
VecDeinit(&vec_h);
HeapAllocatorDeinit(&h_default);
HeapAllocatorDeinit(&h8);
HeapAllocatorDeinit(&h16);- In
Vec.Init.c:202:
HeapAllocatorDeinit(&h_default);
HeapAllocatorDeinit(&h8);
HeapAllocatorDeinit(&h16);
HeapAllocatorDeinit(&h32);- In
Vec.Init.c:203:
HeapAllocatorDeinit(&h_default);
HeapAllocatorDeinit(&h8);
HeapAllocatorDeinit(&h16);
HeapAllocatorDeinit(&h32);
HeapAllocatorDeinit(&h64);- In
Vec.Init.c:204:
HeapAllocatorDeinit(&h8);
HeapAllocatorDeinit(&h16);
HeapAllocatorDeinit(&h32);
HeapAllocatorDeinit(&h64);
return result;- In
Vec.Init.c:205:
HeapAllocatorDeinit(&h16);
HeapAllocatorDeinit(&h32);
HeapAllocatorDeinit(&h64);
return result;
}- In
Vec.Access.c:217:
VecDeinit(&aligned_vec);
HeapAllocatorDeinit(&aligned8);
DefaultAllocatorDeinit(&alloc);
return result;- In
Vec.Access.c:256:
VecDeinit(&aligned_vec);
HeapAllocatorDeinit(&aligned8);
DefaultAllocatorDeinit(&alloc);
return result;- In
Graph.Init.c:163:
GraphDeinit(&graph_h);
HeapAllocatorDeinit(&aligned_64);
HeapAllocatorDeinit(&aligned_32);
HeapAllocatorDeinit(&aligned_16);- In
Graph.Init.c:164:
HeapAllocatorDeinit(&aligned_64);
HeapAllocatorDeinit(&aligned_32);
HeapAllocatorDeinit(&aligned_16);
HeapAllocatorDeinit(&aligned_8);- In
Graph.Init.c:165:
HeapAllocatorDeinit(&aligned_64);
HeapAllocatorDeinit(&aligned_32);
HeapAllocatorDeinit(&aligned_16);
HeapAllocatorDeinit(&aligned_8);
DefaultAllocatorDeinit(&alloc);- In
Graph.Init.c:166:
HeapAllocatorDeinit(&aligned_32);
HeapAllocatorDeinit(&aligned_16);
HeapAllocatorDeinit(&aligned_8);
DefaultAllocatorDeinit(&alloc);
return result;- In
Graph.Type.c:47:
GraphDeinit(&graph);
HeapAllocatorDeinit(&alloc);
return result;
}- In
Vec.Insert.c:348:
VecDeinit(&src);
VecDeinit(&dst);
HeapAllocatorDeinit(&local_heap);
return result;
}- In
Heap.c:163:
}
void HeapAllocatorDeinit(HeapAllocator *self) {
if (!self) {
return;- In
Log.h:48:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
SysAbort(); \
} while (0)- In
Log.h:62:
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
} while (0)- In
Log.h:75:
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
} while (0)- In
Log.h:94:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
SysAbort(); \
} while (0)- In
Log.h:113:
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
} while (0)- In
Log.h:131:
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
} while (0)- In
Default.h:45:
#define DefaultAllocatorInit() HeapAllocatorInit()
#define DefaultAllocatorDeinit(ptr) HeapAllocatorDeinit(ptr)
#endif // MISRA_STD_ALLOCATOR_DEFAULT_H
Last updated on