tier2 not clean

Vladimir Kempik vladimir.kempik at gmail.com
Mon Aug 22 15:47:28 UTC 2022


it’s an interesting bug/feature.

I was building riscv jdk with cross-compilation.
first step was to build build-jdk for host system (x86_64) from the same source code ( bootjdk = jdk18_x86_64)
second step was to build risc-v jdk using build-jdk from previous step and bootjdk = jdk18_x86_64

the issue were cause by disabling C2 (jvm options : -compiler2) in build-jdk ( and only in build-jdk)
this resulted in FDBigInteger class being missed in lib/classlist file ( it’s a symptom tho)
while the class were still present in java.base.mod

for some reason it was affecting not only build-jdk but the final jdk too.

After removing -compiler2 from --with-jvm-features of build-jdk the test passes

Regards, Vladimir
> 22 авг. 2022 г., в 16:33, Vladimir Kempik <vladimir.kempik at gmail.com> написал(а):
> 
> One more update, the issue seems to be an issue with my build, as Alexey’s build from https://builds.shipilev.net/openjdk-jdk/openjdk-jdk-linux-riscv64-server-release-gcc12-glibc2.33.tar.xz <https://builds.shipilev.net/openjdk-jdk/openjdk-jdk-linux-riscv64-server-release-gcc12-glibc2.33.tar.xz>  ( which in fact is built with gcc 11.2.0 - "buildbot" with gcc 11.2.0 ) is fine.
> 
> I will investigate and update if there are any issues on jdk side to be fixed.
> 
>> 22 авг. 2022 г., в 15:45, Vladimir Kempik <vladimir.kempik at gmail.com <mailto:vladimir.kempik at gmail.com>> написал(а):
>> 
>> Also, invalid magic value for class - 16909060 is 0x01020304 in hex.
>> 
>>> 22 авг. 2022 г., в 15:20, Vladimir Kempik <vladimir.kempik at gmail.com <mailto:vladimir.kempik at gmail.com>> написал(а):
>>> 
>>> Hello
>>> launching it two ways:
>>> 
>>> 1) make  OUTPUTDIR=build/prebuilt-output BOOT_JDK=~/java_tiers/jdk20 JT_HOME=~/java_tiers/jtreg6.1/ JDK_IMAGE_DIR=~/java_tiers/jdk20 TEST_IMAGE_DIR=~/java_tiers/test20/ LOG_CMDLINES=true JTREG="TIMEOUT_FACTOR=2"  run-test-prebuilt TEST="test/hotspot/jtreg/runtime/cds/appcds/javaldr/ExceptionDuringDumpAtObjectsInitPhase.java"
>>> 
>>> 2) ~/java_tiers/jdk20/bin/java -jar ~/java_tiers/jtreg6.1/lib/jtreg.jar test/hotspot/jtreg/runtime/cds/appcds/javaldr/ExceptionDuringDumpAtObjectsInitPhase.java
>>> 
>>> both produce same result, (with and without classes.jsa present in lib/server path)
>>> 
>>> tested on sifive unmatched/qemu/alibaba thead rvb-ice, jdk19/20.
>>> 
>>> the jdk is crosscompiled, so missing classes.jsa ( for appcds) by default.
>>> 
>>> jdk is build with gcc 11.2.0
>>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/riscv-port-dev/attachments/20220822/039777b7/attachment-0001.htm>


More information about the riscv-port-dev mailing list