NoClassDefFoundError when using compiler replay mechanism for JDK-8329797
Cao, Joshua
joshcao at amazon.com
Mon Apr 15 21:02:32 UTC 2024
I am trying to reproduce the error in
https://bugs.openjdk.org/browse/JDK-8329797 using the given replay file. I get
the following error:
```
dev-dsk-joshcao-2b-df0d3645 [home/joshcao/src/dacapobench/release]$ ~/jdk/shenandoah/build/linux-x86_64-server-slowdebug/images/jdk/bin/java -cp dacapo-23.8-chopin-RC1/jar/lib/h2/h2-2.1.214.jar -XX:+UseShenandoahGC -XX:+ReplayCompiles -XX:ReplayDataFile=maxlreplay.log -jar dacapo-23.8-chopin-RC1.jar h2
java.lang.NoClassDefFoundError: org/h2/index/Index
Error while parsing line 6 at position 33: org/h2/index/Index
java.lang.NoClassDefFoundError: org/h2/index/Index
Caused by: java.lang.ClassNotFoundException: org.h2.index.Index
at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base at 23-internal/BuiltinClassLoader.java:641)
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base at 23-internal/ClassLoaders.java:188)
at java.lang.ClassLoader.loadClass(java.base at 23-internal/ClassLoader.java:528)
Failed on org/h2/index/Index
```
I got the dacapo jar file from
https://github.com/dacapobench/dacapobench/releases/tag/v23.9-RC1-chopin. The
`h2` classes are located in `dacapo-23.8-chopin-RC1/jar/lib/h2/h2-2.1.214.jar`.
I guess the replay mechanism cannot find those classes.
Any tips on how to fix the `NoClassDefFoundError`?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-compiler-dev/attachments/20240415/055953ac/attachment.htm>
More information about the hotspot-compiler-dev
mailing list