RFR: API classes supporting RuntimeTypes and ArrayCreation bootstraps [v4]

Dan Smith dlsmith at openjdk.org
Mon Aug 19 15:52:34 UTC 2024


> - Introduce the RuntimeType interface
> - Modify Class to implement RuntimeType
> - Introduce NullRestrictedClass as another implementation of RuntimeType
> - Provide ConstantDesc support for NullRestrictedClasses
> - Introduce reflection hooks to query RuntimeType of fields and arrays (just return Classes for now)
> - Provide ArrayCreation bootstraps to create arrays with RuntimeTypes, initial values, and flags (no runtime support for new features yet—implementation bottoms out at Array.newInstance)
> - Basic functionality testing of ArrayCreation bootstraps

Dan Smith has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - Merge branch 'lw5' into runtimetypes
 - ArrayCreation.makeDefault: throw AssertionError, not IllegalArgumentException
 - Simplified primitive 'makeComputed' methods
 - Fix typo
 - Fix whitespace
 - Introduced RuntimeType interface; provided ArrayCreation bootstraps

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/1210/files
  - new: https://git.openjdk.org/valhalla/pull/1210/files/5a5e9b13..fd9c980f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=1210&range=03
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1210&range=02-03

  Stats: 762706 lines in 10127 files changed: 193234 ins; 202363 del; 367109 mod
  Patch: https://git.openjdk.org/valhalla/pull/1210.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1210/head:pull/1210

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


More information about the valhalla-dev mailing list