hg: valhalla/valhalla: 8205549: [lworld] Unsafe support for flattened field of value type

mandy chung mandy.chung at oracle.com
Wed Jul 11 23:27:05 UTC 2018

On 7/11/18 4:17 PM, John Rose wrote:
> On Jul 11, 2018, at 3:08 PM, Karen Kinnear <karen.kinnear at oracle.com>
> wrote:
>> 1. Flattened arrays — AFAICT you have implemented unsafe support
>> for value types in fields for MethodHandles, VarHandles and
>> Reflection. What were your plans for array support?
> I think the array support uses bytecodes instead of Unsafe. As such,
> it should pretty much Just Work wth value types. See code for
> MethodHandleImpl.makeArrayElementAccessor; it has no use of Unsafe,
> just xaload/xastore instructions on particular array types.

I should have made myself clear in my reply.  John is correct
about MethodHandles and I already have a test verifying it.

What is not working is VarHandle w.r.t.


More information about the valhalla-dev mailing list