CSmallBlockAllocator et al. relies on VirtualAlloc and VirtualFree to allocate and free pages. This needs to be re-implemented on Linux systems.
I have identified the following strategies for doing this:
Implement a platform-specific page allocator that behaves identically to VirtualAlloc/VirtualFree such that CSmallBlockAllocator will work on Linux too (this is the best idea)
Re-implement CSmallBlockAllocator so that it depends on malloc/free instead (this would be a slab allocator avoiding systems-level allocation functions like VirtualAlloc and sbrk)
CSmallBlockAllocator et al. relies on VirtualAlloc and VirtualFree to allocate and free pages. This needs to be re-implemented on Linux systems. I have identified the following strategies for doing this: