RFR: 8151534: Refactor ArrayAllocator for easier reuse

Stefan Karlsson stefan.karlsson at oracle.com
Wed Mar 9 16:25:07 UTC 2016

Hi all,

Please review this patch to refactor the ArrayAllocator code.


ArrayAllocator is used to either allocate an array with malloc or mmap. 
This patch extracts the allocation code into two separate classes: 
MmapArrayAllocator and MallocArrayAllocator. ArrayAllocator will 
dispatch to one of these classes depending on the size of the 
allocation. The main motivation for this patch is to allow the fix for 
JDK-8077144 to reuse the code in MmapArrayAllocator.


More information about the hotspot-dev mailing list