[lworld] RFR: 8331006: [lworld] Support of null markers for nullable flat fields [v2]

Frederic Parain fparain at openjdk.org
Mon Apr 29 14:41:45 UTC 2024


> This is the first step in supporting nullable flat fields in JEP 401.
> Those changes give value fields the optional capability to be associated with a null marker that indicates if the value if the field is null or not. Null markers are integrated in the object layout, and in the field metadata (in both compresses and uncompressed forms).
> Field accesses in the x86 and the arch64 interpreter have been extended to check the presence of a null marker when reading a field. If present, the null marker is checked in reads and updated on writes.
> 
> The field layout logic is becoming more complex (and the complexity will continue to increase in the future with the addition of atomic flat fields and atomic nullable flat fields). So the changeset includes a test framework able to verify the consistency of fields layout using the output of -XX:+PrintFieldLayout. The format of data printed by PrintFieldLayout has been extended and modified to be easier to parse.

Frederic Parain has updated the pull request incrementally with one additional commit since the last revision:

  Fixing issues spotted during reviews

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/1078/files
  - new: https://git.openjdk.org/valhalla/pull/1078/files/684da164..34180e09

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=1078&range=01
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1078&range=00-01

  Stats: 117 lines in 6 files changed: 96 ins; 2 del; 19 mod
  Patch: https://git.openjdk.org/valhalla/pull/1078.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1078/head:pull/1078

PR: https://git.openjdk.org/valhalla/pull/1078



More information about the valhalla-dev mailing list