Withdrawn: 7903898: JMH: Unsafe deprecation warnings are printed in JDK 24

Aleksey Shipilev shade at openjdk.org
Fri Dec 6 08:07:52 UTC 2024


On Thu, 5 Dec 2024 19:42:49 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> This is printed for every benchmark running with JDK 24 now:
> 
> 
> WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
> WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/Users/shipilev/Work/shipilev-jmh/jmh-samples/target/benchmarks.jar)
> WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
> WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
> 
> 
> These have not failed for a long time, so we can just trust the padding works. This will also avoid running some of this checking code during benchmark execution, adding to benchmark accuracy.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jmh/pull/140


More information about the jmh-dev mailing list