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

RecomputeFieldValue.ArrayBaseOffset automatic substitution failed - Quarkus native build #4820

Closed
denysandriyanov opened this issue Jan 26, 2023 · 3 comments

Comments

@denysandriyanov
Copy link

During qarkus native build getting following warnings:

Warning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.arrayBaseOffset(Class) was detected in the static initializer of com.esotericsoftware.kryo.unsafe.UnsafeUtil. Detailed failure reason(s): Could not determine the field where the value produced by the call to jdk.internal.misc.Unsafe.arrayBaseOffset(Class) for the array base offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.

@mrniko
Copy link
Member

mrniko commented Jan 26, 2023

Is there any way to reproduce it?

@denysandriyanov
Copy link
Author

I am using quarkus native build
GRADLE_STEPS: clean build
GRADLE_EXTRA_ARGS:
-Dquarkus.package.type=native
-Dquarkus.native.container-build=true
-Dquarkus.native.container-runtime=docker

Using implementation 'org.redisson:redisson-quarkus-20:3.19.1'

Using Rbucket and RLock

@mrniko
Copy link
Member

mrniko commented Feb 9, 2023

Disable unsafe on GraalVM with -Dkryo.unsafe=false.

@mrniko mrniko closed this as completed Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants