nalim
nalim copied to clipboard
Runtime error on Java 21
Same code works with Java 20
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: nmethod entry barrier is missing [in thread "microbench.SimilarityBench.a_dotProductNalim-jmh-worker-5"]
at jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVM.installCode0(Native Method)
at jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVM.installCode(CompilerToVM.java:549)
at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotCodeCacheProvider.installCode(HotSpotCodeCacheProvider.java:139)
at jdk.internal.vm.ci/jdk.vm.ci.code.CodeCacheProvider.setDefaultCode(CodeCacheProvider.java:67)
at one.nalim.Linker.installCode(Linker.java:174)
at one.nalim.Linker.linkMethod(Linker.java:121)
at one.nalim.Linker.linkMethod(Linker.java:93)
at one.nalim.Linker.linkClass(Linker.java:77)
at io.github.jbellis.jvector.vector.Jvector.<clinit>(Jvector.java:14)
... 12 more
Observing same when experimenting with JniBench and Temurin-21+35 (build 21+35-LTS)
The fix is understood. JDK 21 support is not the priority right now though.