Skip to content

LiberalPool aims to be almost as good as this Fast Efficient Fixed-Size Pool at the same time allowing double free without pool metadata corruption at a cost of roughly 1 bit per block.

License

Notifications You must be signed in to change notification settings

CHr15F0x/memory-pools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory-pools

Build Status codecov

Introduction

Memory pool experiments, so far one of the ideas is implemented.

LiberalPool

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.

Usage

Just #include liberal-pool.h into your project.

Pool capacity can be set during compilation (StaticLiberalPool) or in run time (LiberalPool).

Build & run tests

mkdir -p build && cd build && cmake .. && make -j && make test

Remember to git submodule update --init --recursive after cloning

Platform

So far tried GCC on Ubuntu16.04 and Arch.

About

LiberalPool aims to be almost as good as this Fast Efficient Fixed-Size Pool at the same time allowing double free without pool metadata corruption at a cost of roughly 1 bit per block.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published