Memory pool experiments, so far one of the ideas is implemented.
Aims to be almost as good as this Fast Efficient Fixed-Size Memory Pool but at the same time allowing double free errors without pool metadata corruption, hence the liberal prefix. This comes at a cost of roughly 1 bit per block.
Just #include liberal-pool.h into your project.
Pool capacity can be set during compilation (StaticLiberalPool) or in run time (LiberalPool).
mkdir -p build && cd build && cmake .. && make -j && make test
Remember to git submodule update --init --recursive
after cloning
So far tried GCC on Ubuntu16.04 and Arch.