RFR: 8283352: [CDS] SharedBaseAddress.java fails on x86_32

Ioi Lam iklam at openjdk.java.net
Fri Mar 18 06:18:30 UTC 2022


On Fri, 18 Mar 2022 02:27:14 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all, 
> 
> Three cds tests fail on x86_32 due to incorrect VM testing parameters.
> 
> runtime/cds/appcds/SharedBaseAddress.java
> runtime/cds/SharedBaseAddress.java#id1
> runtime/cds/SharedBaseAddress.java#id0
> 
> 
> Here is part of the failing log.
> 
> [STDERR]
> Improperly specified VM option 'SharedBaseAddress=8g'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> 
> 
> [STDERR]
> Improperly specified VM option 'SharedBaseAddress=0x800001000'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> 
> 
> The fix just excludes them for 32-bit VMs.
> 
> Thanks.
> Best regards,
> Jie

I think it's better to keep testing the 32-bit VM with values that are valid in 32-bit. How about splitting `testTable` into two parts: one for all builds, one for 64-bit platforms only?

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

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


More information about the hotspot-runtime-dev mailing list