Skip to content
/ amalloc Public

Dynamic Alloaction using mmap(2)

Notifications You must be signed in to change notification settings

0x0584/amalloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory

zones

  • tiny
  • small
  • large

page

linked list

  • tiny small hold many objects by design
  • large may also hold many objects but just in case of a leftover memory
    • normally, large objects are allocated a size that will at least fit the whole object specifically

routines

malloc

  • allocate memory always less than MAX_SIZE_PER_ALLOC
  • if size if zero, UB
  • “on failure”, return NULL

failure

TODOs [1/3]

  • [X] added hasher algo to hash table
  • [-] fix compilation
    • [-] verify zone allocation
      • [X] slice_memory
      • [ ]
  • [ ]

Resources