How to skip "Creating CDS-NOCOOPS archive for jdk image for server"
Thomas Stüfe
thomas.stuefe at gmail.com
Mon Apr 3 10:51:48 UTC 2023
Hi Oliver,
`--disable-cds-archive` disables CDS archive generation.
More generally, you can specify a different JVM for building purposes with
--with-build-jdk. This is different from --with-boot-jdk in that it has to
fit closely the target JVM - ideally, it has to be built from the same
sources. Specifying --with-build-jdk prevents the built JVM from being used
during building. Usually used for crossbuilds where the target VM won't run
on the build hardware.
So you could build a good JVM from the master branch and use that as build
jdk with your development branch, provided the branches are not too far off.
Cheers, Thomas
On Mon, Apr 3, 2023 at 11:21 AM Oliver Kopp <kopp.dev at gmail.com> wrote:
> Hey,
>
> I am on Windows 10 and compiling using Cygwin. The code I am working on is
> verfy inside the JDK - and thus could prevent compilation. (I am trying to
> work on https://github.com/openjdk/jdk/pull/10704).
>
> With some modifications of the code, compilation hangs at " Creating
> CDS-NOCOOPS archive for jdk image for server"
>
> $ make images
> Building target 'images' in configuration 'windows-x86_64-server-release'
> Compiling up to 89 files for jdk.jlink
> Updating support/src.zip
> Creating jdk.jlink.jmod
> Creating java.base.jmod
> Creating jdk image
> Creating CDS archive for jdk image for server
> Creating CDS-NOCOOPS archive for jdk image for server
>
> When executing tests, it also depends on the CDS tasks:
>
> $ make test TEST="jtreg:test/jdk/tools/jlink/JLink100Modules.java"
> Building target 'test' in configuration 'windows-x86_64-server-release'
> Creating CDS archive for jdk image for server
> Creating CDS-NOCOOPS archive for jdk image for server
>
> Would it be possible to adapt the dependencies that only "
> jdk.jlink.jmod", "java.base.jmod", " jdk image" are build?
>
> Cheers,
>
> Oliver
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20230403/390967e0/attachment.htm>
More information about the jdk-dev
mailing list