RFR: 8368475: [lworld] Add preview classes to jimage at make time [v3]

David Beaumont duke at openjdk.org
Tue Nov 4 17:42:24 UTC 2025


> Copies valuetype classes for each module into corresponding "/META-INF/preview/..." sub-directories to be pulled into jimage files and processed by the new preview mode handling code.
> 
> There might be a better way to do this in terms of Makefile semantics, but this seems to work well enough and doesn't prevent the value-class JAR files being generated for patching (which is still how everyone will get value classes until the rest of the work is plumbed in).
> 
> To enable the new preview mode work, set the "DISABLE_PREVIEW_PATCHING" system property to "true".

David Beaumont has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  Rollup of makefile changes and jlink fix (temp).
  
  * likely test fix
  * Copy value classes into preview directories for inclusion in jimage

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/1719/files
  - new: https://git.openjdk.org/valhalla/pull/1719/files/747b24d0..3b7c8cc3

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

  Stats: 794 lines in 18 files changed: 3 ins; 27 del; 764 mod
  Patch: https://git.openjdk.org/valhalla/pull/1719.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1719/head:pull/1719

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


More information about the valhalla-dev mailing list