1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

Added a slab allocator

A slab-allocator can now be used as the back-end for all memory allocations by setting __slab_max_size to a value > 0. This controls the slab size used for allocations and should be a power of 2, such as 2048 or 4096 bytes.

This change still needs testing.
This commit is contained in:
Olaf Barthel
2016-11-17 11:45:59 +01:00
parent ac6d131dc3
commit 8051da3c9a
7 changed files with 566 additions and 22 deletions

View File

@ -255,6 +255,7 @@ C_LIB := \
stdlib_shared_objs.o \
stdlib_shell_escape.o \
stdlib_showerror.o \
stdlib_slab_max_size.o \
stdlib_srand.o \
stdlib_stacksize.o \
stdlib_stack_usage.o \