RFR: 8151534: Refactor ArrayAllocator for easier reuse
stefan.karlsson at oracle.com
Tue Mar 15 07:47:56 UTC 2016
On 10/03/16 12:41, Thomas Schatzl wrote:
> On Wed, 2016-03-09 at 17:25 +0100, Stefan Karlsson wrote:
>> Hi all,
>> Please review this patch to refactor the ArrayAllocator code.
>> ArrayAllocator is used to either allocate an array with malloc or
>> 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
>> JDK-8077144 to reuse the code in MmapArrayAllocator.
> looks good. I will put MmapArrayAllocator to good use :)
More information about the hotspot-dev