Unsafe.getValue() on a flattenable but non flattened field

Roland Westrelin rwestrel at redhat.com
Thu Dec 6 16:55:32 UTC 2018


Hi Mandy,

> Yes, the user of `Unsafe` is responsible for asking whether a given
> variable is flattened or not.
>
> MemberName::isFlatValue is the API to determine if this member is
> flattened.  Similarly, the modifier of java.lang.reflect.Field
> carries a bit to indicate if flattened.  I'm considering adding
> Unsafe::isFlattened(Field).

Thanks.

Roland.


More information about the valhalla-dev mailing list