ArrayAllocator dispatches allocations to use either malloc or mmap. Parts of the implementation is going to be used for JDK-8077144. This RFE extracts the malloc and mmap implementations out to two separate classes: MallocArrayAllocator and MmapArrayAllocator.