Skip to content

letectec/my_malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_malloc

My rewrite of malloc().

It's pretty fast for Epitech's standards with two linked lists (malloc'ed memory and free'd memory).

Fusion between two free'd blocks. Split for when malloc needs a smaller size than the free'd blocks have.

It can move the memory break backwards if all the free'd memory is at the end.

And it uses brk() with only PAGE_SIZE compliant values to be even faster.

Epitech forbids the use of mmap for requesting memory so only sbrk() is used here.

About

My rewrite of malloc()

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published