tree: 591c7a5841c4ce10f6230954b5ba843f459e2811 [search]
  1. alloc-aligned.c
  2. alloc-generic.c
  3. alloc-override.c
  4. alloc-posix.c
  5. alloc.c
  6. free.c
  7. page-queue.c
  8. page-queue.h
  9. page.c
  10. page.h
  11. readme.md
src/alloc/readme.md

Allocation and Freeing

  • alloc.c: Main allocation and reallocation functions, including the allocation fast paths.
  • alloc-generic.c: Allocation slow path (mi_malloc_generic), page selection, deferred-free callbacks.
  • alloc-aligned.c: Aligned allocation and reallocation, including allocations with an alignment offset.
  • alloc-posix.c: POSIX, Unix, and Microsoft-compatible allocation interfaces and convenience functions.
  • alloc-override.c: Standard allocator and C++ allocation overrides, included by alloc.c.
  • free.c: Local and cross-thread freeing, pointer validation, and usable-size queries, included by alloc.c.
  • page.c: Allocation-page initialization, free-list management, collection, and retirement.
  • page.h: Private declarations for page helpers used by generic allocation.
  • page-queue.c: Size-class mapping and management of page queues.
  • page-queue.h: Private page-queue declarations and inline helpers.