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

David Beaumont duke at openjdk.org
Tue Nov 4 16:57:54 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".
> 
> This should be review against https://github.com/openjdk/valhalla/pull/1621.

David Beaumont has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 21 commits:

 - Makefile change and test fix rolled into one.
   
   * likely test fix
   * Copy value classes into preview directories for inclusion in jimage
 - Fixing up after dependent PR changes
 - feedback and remove unused code
 - [[AUTOMATIC FORMATTING]]
 - new tests for ImageLocation
 - Restoring lost changes and updating some comments.
 - add system property guard to preview mode
 - Remove TODOs now jimage version is bumped
 - jimage writer changes to support preview mode.
 - feedback changes
 - ... and 11 more: https://git.openjdk.org/valhalla/compare/7257a072...6ea658b0

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

Changes: https://git.openjdk.org/valhalla/pull/1622/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1622&range=04
  Stats: 4452 lines in 37 files changed: 2447 ins; 608 del; 1397 mod
  Patch: https://git.openjdk.org/valhalla/pull/1622.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1622/head:pull/1622

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


More information about the valhalla-dev mailing list