"incompatible property" error when using --add-modules, --add-opens, --add-exports, etc.
Boyce, Jeffrey
Jeffrey.A.Boyce at Carrier.com
Mon Sep 9 20:16:40 UTC 2024
Hello,
I am attempting to evaluate performance improvements afforded by the Leyden CDS enhancements for an embedded application running on aarch64. The application makes extensive use of the --add-modules, --add-opens, and --add-exports command line arguments. However, it appears that these arguments are incompatible with the -XX:CacheDataStore option, as their use results in errors similar to the following:
[0.004s][warning][cds] optimized module handling/full module graph: disabled due to incompatible property: jdk.module.addopens=java.base/java.nio=org.apache.tomcat.embed.core
Error occurred during initialization of VM
CacheDataStore cannot be created because AOTClassLinking is enabled but full module graph is disabled
Is this the expected behavior? If yes, is there a workaround or a plan to support these options in the future?
Thanks,
Jeff Boyce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20240909/84192876/attachment.htm>
More information about the leyden-dev
mailing list