RFR: 8151534: Refactor ArrayAllocator for easier reuse

Stefan Karlsson stefan.karlsson at oracle.com
Tue Mar 15 07:48:14 UTC 2016


Thanks, Bengt.

StefanK

On 15/03/16 08:39, Bengt Rutisson wrote:
>
> Hi Stefan,
>
> On 2016-03-09 17:25, Stefan Karlsson wrote:
>> Hi all,
>>
>> Please review this patch to refactor the ArrayAllocator code.
>>
>> http://cr.openjdk.java.net/~stefank/8151534/webrev.00
>> https://bugs.openjdk.java.net/browse/JDK-8151534
>>
>> 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.
>
> Looks good.
>
> Bengt
>
>>
>> Thanks,
>> StefanK
>



More information about the hotspot-dev mailing list