RFR: 8247536: Support for pre-generated java.lang.invoke classes in CDS static archive
Mandy Chung
mandy.chung at oracle.com
Tue Aug 25 02:19:38 UTC 2020
On 8/24/20 3:53 PM, Ioi Lam wrote:
>
> :
>
> However, I suspect most people won't do this, because the benefit is
> relatively small. Also, jlink doesn't support classpath apps, so you
> would need to figure out what to use for "--add-modules". In the worst
> case, the custom JDK would be over 100MB in size.
>
`jdeps --print-module-deps` can find the static dependencies. It will
need to know its reflective dependencies and any service providers it
depends on. It's no different for creating a custom image for modular apps.
Mandy
More information about the hotspot-runtime-dev
mailing list