Work

Memory Management

Memory Management
Description:

I wanted to further my skils of memory management trough several projects: a memory allocator, a memory leak detector and a smart pointer system. My memory allocator uses one of several possible allocation patterns to claim a chunk of memory and distribute it as needed. The memory leak detector works on similar lines as the memory allocator. It reserves a chunk of memory to allocate from, when new memory is requested it is given some header information. The header information given to each chunk of memory is then used to track leaks and allocation match - mismatches. The smart pointer acts very similarly to java. Objects are allocated with new and deleted when they have no active references. The memory allocated for smart pointers is tracked with a system similar to the memory leak detector.
The hash function in the download does nothing, i did not feel comfortable making my final hash function public.