RFR: 8352044: Add --with-import-jvms to configure

Aleksey Shipilev shade at openjdk.org
Fri Mar 14 18:35:13 UTC 2025


On Fri, 14 Mar 2025 17:57:31 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> No, it doesn't -- only libjvm.so. .jsa files complicate the situation. Hm.

Aha. Importing CDS archives without regenerating them is futile, IIRC: they would never load properly, CDS would get disabled, and we would just carry dead weight.

> Maybe we should point to an import JVM directory, and copy it with all its files, and not just try to single out the libjvm.so. That will allow imported JVMs to tag along any kind of files they want.

Yes. There are also debuginfo files that you certainly want.

> The problem is that we can't really count on -Xshare being supported on an imported JVM.

This is suggestion for testing CDS support. We don't need to do `-Xshare:on` tests from a build system.

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

PR Comment: https://git.openjdk.org/jdk/pull/24063#issuecomment-2725450392


More information about the core-libs-dev mailing list