Current implementation - syscall abstractions
I refactored my approach to test my malloc by just mocking syscalls under testing conditions to get rid of dynamic linking altogether.
This is the landing page for deeper study of my dynamic linking adventure while testing my malloc , an educational glibc inspired memory allocator with extensive instrumentation, determinism concerns, and cross-platform linking behavior.
The series are concerned with:
📌 Dynamic Linking Overview, a high-level explanation of why dynamic linking and allocator interposition matter, and how platform differences affect allocator behavior.
The current mainline implementation does not globally interpose on the system allocator. Instead, it prioritizes determinism and testability by abstracting system calls behind a mockable interface.
📌 Current Implementation & Syscall Abstraction, explains how the allocator is developed and tested today.
We touch on:
Cross-platform allocator correctness constraints