RFR 8183133: [MVT] Arraylength method handle on Q-typed array shouldn't use ArrayAccessor.lengthL(Object[])
Vladimir Ivanov
vladimir.x.ivanov at oracle.com
Mon Jul 3 20:57:54 UTC 2017
Looks good.
In a longer term, it's feasible to use a single implementation which
relies on Unsafe.getInt((Object)array, ARRAY_LENGTH_OFFSET) to fetch
array length from an array of arbitrary type.
Best regards,
Vladimir Ivanov
On 7/3/17 5:22 PM, Maurizio Cimadamore wrote:
> Hi,
> This patch adds an arrayLength() method handle to ValueType. This is
> necessary, as the standard arraylength generation strategy performed in
> MethodHandles doesn't work on value-typed arrays.
>
> http://cr.openjdk.java.net/~mcimadamore/8183133/
>
> Thanks
> Maurizio
>
>
More information about the valhalla-dev
mailing list