The 'modules' image (jimage) packaged JDK resources

Alan Bateman Alan.Bateman at oracle.com
Tue Feb 13 17:00:06 UTC 2024


On 07/02/2024 01:56, Jiangli Zhou wrote:
> I prototyped jimage included JDK resources using java.security:
> https://github.com/openjdk/leyden/commit/b82d06c358b924bd627d07e0cd0932f5d2e7be00

If I read this correctly, the jlink plugin copies java.security so that 
that it is adjacent to java/security/Security.class. At run-time it gets 
an input stream to the resource with Security.class.getResourceAsStream. 
This avoids the use of jrtfs in the previous iteration. We can go 
further on this.  As the bundled/default security configuration is no 
longer editable then the contents are link-time are the same as run-time 
so the parsing (Properties.load etc.) can be avoided. So synergy with 
the other efforts here, good!

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20240213/de75d15f/attachment.htm>


More information about the leyden-dev mailing list