Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error on Java 21 #10

Open
tjake opened this issue Oct 9, 2023 · 2 comments
Open

Runtime error on Java 21 #10

tjake opened this issue Oct 9, 2023 · 2 comments

Comments

@tjake
Copy link

tjake commented Oct 9, 2023

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

@vans239
Copy link

vans239 commented Oct 17, 2023

Observing same when experimenting with JniBench and Temurin-21+35 (build 21+35-LTS)

@apangin
Copy link
Owner

apangin commented Oct 17, 2023

The fix is understood. JDK 21 support is not the priority right now though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants