|
CX Framework
Cross-platform C utility framework
|
Modules | |
| Allocation Flags | |
| Out-of-Memory Handling | |
| Core Allocation Functions | |
| Size Introspection | |
| Compatibility Interface | |
Functions | |
| void | xaFlush () |
| Flushes any deferred free() operations and returns as much memory to the OS as possible. | |
The xalloc system provides a unified memory allocation interface with enhanced capabilities:
IMPORTANT: By default, xalloc guarantees memory allocation. If an allocation request cannot be satisfied (even after OOM handlers attempt to reclaim memory), the process will abort. You must explicitly specify XA_Opt or XA_Optional() for allocation requests that are allowed to fail and have proper failure handling.