Most of the implementations are copied from linux.cpp and we will be
keeping those memory functions in linux.cpp for a while until we are
able to switch to use MemMap completely.
The remaining part is SizeClassAllocator32 which hasn't been switched to
use MemMap interface
Is this still necessary? I'm not sure if you need to make this compile on old versions of Android, but PR_SET_VMA and PR_SET_VMA_ANON_NAME are available from the bionic kernel headers.
If you need to make this work on older versions of Android, maybe this should be changed to see if PR_SET_VMA is defined.