Mainline is broken?

yangfei at iscas.ac.cn yangfei at iscas.ac.cn
Mon Aug 29 10:57:28 UTC 2022


Hi,

> -----Original Messages-----
> From: "Aleksey Shipilev" <shade at redhat.com>
> Sent Time: 2022-08-29 18:27:45 (Monday)
> To: "riscv-port-dev at openjdk.org" <riscv-port-dev at openjdk.org>
> Cc: 
> Subject: Mainline is broken?
> 
> Hi there,
> 
> I am trying to run the RISC-V tests in mainline, and it fails like:
> 
> # make test JTREG="TIMEOUT_FACTOR=32" TEST=compiler/unsafe/ TEST_VM_OPTS="-DweakAttempts=10000" | ts -s
> 00:00:00 Building target 'test' in configuration 'linux-riscv64-server-fastdebug'
> 00:17:10 Creating interim java.base.jmod
> 00:17:56 Creating interim jimage
> 00:19:16 Creating jdk.jlink.jmod
> 00:19:25 Creating java.base.jmod
> 00:20:35 Creating jdk image
> 00:21:15 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot 
> be cast to class jdk.tools.jlink.plugin.ResourcePoolEntry 
> (jdk.internal.loader.ClassLoaders$AppClassLoader is in module java.base of loader 'bootstrap'; 
> jdk.tools.jlink.plugin.ResourcePoolEntry is in module jdk.jlink of loader 'app')
> 00:21:15 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
> 00:21:15 	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
> ...
> 
> I managed to bisect this to:
> 
> commit 054c23f484522881a0879176383d970a8de41201
> Author: Erik Österlund <eosterlund at openjdk.org>
> Date:   Thu Aug 25 09:48:55 2022 +0000
> 
>      8290025: Remove the Sweeper
> 
>      Reviewed-by: stefank, kvn, iveresov, coleenp, vlivanov, mdoerr
> 
> 
> ...but I wonder if this is just my board misbehaving, or anyone else is seeing it?

Yes, we have noticed this build failure last weekend and have fixed it: https://github.com/openjdk/jdk/pull/10056 
Could you please take a look? 

The exact fix for the problem was in changes in file: src/hotspot/cpu/riscv/gc/g1/g1BarrierSetAssembler_riscv.cpp
We also noticed that ZGC and shenandoah won't work after JDK-8290025. This PR also provides the necessary RV-specific changes for JDK-8290025.

Thanks,
Fei</eosterlund at openjdk.org></riscv-port-dev at openjdk.org></shade at redhat.com>


More information about the riscv-port-dev mailing list