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

Mandy Chung mchung at openjdk.java.net
Tue Jan 26 22:15:00 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.

This pull request has now been integrated.

Changeset: a2e8c6b2
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/valhalla/commit/a2e8c6b2
Stats:     166 lines in 5 files changed: 159 ins; 0 del; 7 mod

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

Reviewed-by: rriggs

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

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



More information about the valhalla-dev mailing list