Skip to content

JDK25 Support - A terminally deprecated method in sun.misc.Unsafe has been called #12623

@souenzzo

Description

@souenzzo

Describe GraalVM and your environment :

  • GraalVM version or commit id if built from source: 25.0.1
  • CE or EE: CE
  • JDK version: JDK25
  • OS and OS Version: linux 6.17.8-arch1-1
  • Architecture: amd64
  • The output of java -Xinternalversion:
OpenJDK 64-Bit Server VM (25.0.1+8-jvmci-b01) for linux-amd64 JRE (25.0.1+8-jvmci-b01), built on 2025-10-01T14:18:44Z with gcc 14.2.0

Have you verified this issue still happens when using the latest snapshot?
You can find snapshot builds here: https://github.com/graalvm/graalvm-ce-dev-builds/releases

Describe the issue

JDK25 Warns this

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntime (file:/home/souenzzo/.m2/repository/org/graalvm/truffle/truffle-runtime/25.0.1/truffle-runtime-25.0.1.jar)
WARNING: Please consider reporting this to the maintainers of class com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntime
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

https://github.com/oracle/graal/blob/master/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/hotspot/HotSpotTruffleRuntime.java#L685

Code snippet or code repository that reproduces the issue

org.graalvm.polyglot.Context.create("js")

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions