MapMustCompact
Description
Aborting variant of MapCompact. Calls LOG_FATAL on allocation failure.
Success
Returns to the caller.
Failure
Does not return - aborts via LOG_FATAL / Abort.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Memory.h:118:
do { \
if (!MapCompact((m))) { \
LOG_FATAL("MapMustCompact failed"); \
} \
} while (0)- In
Map.Ops.c:215:
bool result = (MapTombstones(&map) == 1);
MapMustCompact(&map);
// Returned to caller; tombstones cleared, survivors intact, length exact.
Last updated on