RFR: 8263914: CDS fails to find the default shared archive on x86_32

David Holmes dholmes at openjdk.java.net
Mon Mar 22 02:41:46 UTC 2021


On Mon, 22 Mar 2021 01:30:43 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> The VM fails to get initialized when running with `java -Xshare:on -version` on x86_32.
> The reason is that the default shared archive (classes_nocoops.jsa) doesn't exist.
> So the build system should generate classes_nocoops.jsa instead of classes.jsa on x86_32.
> 
> Thanks.
> Best regards,
> Jie

Hi Jie,

I don't think this is the right solution here. The logic for when to use a NOCOOPS archive seems inconsistent between the generate and use phases. If 32-bit is logically always a no-coops archive it should still be called classes.jsa. The logic to look for the archive seems wrong to me.

David

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

PR: https://git.openjdk.java.net/jdk/pull/3109


More information about the hotspot-runtime-dev mailing list