[lworld] RFR: [lworld] Field::get should return default value instead of null on non-flattened inline field

Roger Riggs rriggs at openjdk.java.net
Tue Jan 26 21:50:49 UTC 2021


On Tue, 26 Jan 2021 21:24:30 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> A field could be of a non-flattened inline type.  `Unsafe::getReference(Object o, long offset, Class<?> valueType)` should be used instead.   The value type parameter is used to differentiate if the field is an inline type or not; if so, it will return an uninitialized value of the inline type.

Marked as reviewed by rriggs (Committer).

-------------

PR: https://git.openjdk.java.net/valhalla/pull/314



More information about the valhalla-dev mailing list