smmorneau / MemoryAllocator

A thread-safe user-level memory allocator using first-fit allocation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author:       Steely Morneau
Project:      MemoryAllocator
Last updated: September 2012
-----------------------------
A thread-safe user-level memory allocator using first-fit allocation.
Implementations of malloc() and free().

The heap contains free and used blocks. A list of free blocks is used for bookkeeping.
Free blocks are split and coalesced as memory is allocated and freed, respectively.

The memory allocator implementation is in memalloc.c with supporting code in the pintos 
directory. The Pintos library (see AUTHORS and LICENSCE for more information) is used 
for its list and string implementations. 

pintos/test_mem.c demonstrates how to use the memory allocator as well as testing its 
functionality.

Use the Makefile to build.

About

A thread-safe user-level memory allocator using first-fit allocation.


Languages

Language:C 100.0%