Two-Level Segregated Fit memory allocatorΒΆ

TLSF is a general purpose dynamic memory allocator specifically designed to meet real-time requirements:

TLSF provides an implementation of malloc/realloc/free/etc with the following characteristics:

  • O(1) Performance
  • Works on a user supplied block of memory instead of a global heap.
  • Efficient both in terms of memory overhead and processor time.
  • Low fragmentation.

Additionally, a contrib package

See also

TLSF-based malloc. implements a global heap allocator with the standard malloc/free functions.

The tlsf code uses printf to report errors. This is not OK.