<div dir="ltr"><div>Hi,</div><div><br></div><div>is there a way to reliably prevent the jvm from being called with -Xshare:dump during build? <br></div><div><br></div><div>Often, when I tinker with metaspace or compressed klass pointers, CDS gets broken. During development, that is fine; it is a temporary state.</div><div><br></div><div>However, if -Xshare:dump is invoked, it may crash the JVM and break the build.<br></div><div><br></div><div>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?</div><div><br></div><div>Thanks, Thomas</div><div><br></div><div>P.S. Also, how is this handled for crossbuilds, where generating shared archives on the build machine makes little sense?<div><br></div><div><br></div></div><br></div>