JDK-8366200 : Modify jimage package flags to support preview mode
  • Type: Sub-task
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Closed
  • Resolution: Withdrawn
  • Submitted: 2025-08-26
  • Updated: 2025-09-23
  • Resolved: 2025-09-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaResolved
Related Reports
Relates :  
Description
The easiest way to support preview mode is likely to be to have additional flags present in package entries in the jimage file. 

There is already a suitable u4 flag word, used in the "/packages/xxx/yyy" entries, which currently has the value 0 or 1 (determining if the package is "empty" or not for that module).
This flag appears to be completely unused however, and the last code referencing it was removed with JDK-8366255.
This means there is now scope to add new flags for supporting preview mode, and even change the order in which package entries are stored to optimize access.
Comments
Now handled as part of the preview support changes in ImageReader.
23-09-2025

This superseded by JDK-8368333 and https://github.com/openjdk/valhalla/pull/1613.
23-09-2025

A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1537 Date: 2025-08-29 13:21:07 +0000
29-08-2025

A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1534 Date: 2025-08-27 01:19:17 +0000
27-08-2025