How do I reliably prevent CDS archive generation during builds?
Thomas Stüfe
thomas.stuefe at gmail.com
Tue May 7 04:31:28 UTC 2024
Thank you, Eric!
On Mon, May 6, 2024 at 7:21 PM <erik.joelsson at oracle.com> wrote:
> On 5/6/24 09:26, Thomas Stüfe wrote:
> > Hi,
> >
> > is there a way to reliably prevent the jvm from being called with
> > -Xshare:dump during build?
> >
> > Often, when I tinker with metaspace or compressed klass pointers, CDS
> > gets broken. During development, that is fine; it is a temporary state.
> >
> > However, if -Xshare:dump is invoked, it may crash the JVM and break
> > the build.
> >
> > I specified --disable-cds-archives and
> > --disable-jvm-feature-link-time-opt. But still, link time optimization
> > step runs and calls the build JVM with -Xshare:dump. Is that a bug?
> >
> I think if you add --disable-generate-classlist to that list of
> configure arguments, this particular invocation with -Xshare:dump will
> go away.
>
> /Erik
>
> > Thanks, Thomas
> >
> > P.S. Also, how is this handled for crossbuilds, where generating
> > shared archives on the build machine makes little sense?
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20240507/455fee9e/attachment-0001.htm>
More information about the build-dev
mailing list