skiars / tlsf-malloc

Two-Level Segregated Fit memory allocator C++ implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tlsf-malloc

Two-Level Segregated Fit memory allocator C++ implementation.

This implementation is based on https://github.com/mattconte/tlsf and has the following features:

  • Compatible with 32 / 64 bit platforms (but does not support blocks over 4GB)
  • The allocated address must be aligned according to the align_size specified by the user

Why use C++ ?

The reason is that templates can be used to generate code at compile time for different functions, such as aligning sizes. If it is done at runtime, then it is less efficient.

About

Two-Level Segregated Fit memory allocator C++ implementation.

License:MIT License


Languages

Language:C++ 97.3%Language:C 2.7%