RFR: 7903898: JMH: Unsafe deprecation warnings are printed in JDK 24
Aleksey Shipilev
shade at openjdk.org
Thu Dec 5 19:47:33 UTC 2024
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.
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.org/jmh/pull/140/files
Webrev: https://webrevs.openjdk.org/?repo=jmh&pr=140&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903898
Stats: 202 lines in 7 files changed: 0 ins; 190 del; 12 mod
Patch: https://git.openjdk.org/jmh/pull/140.diff
Fetch: git fetch https://git.openjdk.org/jmh.git pull/140/head:pull/140
PR: https://git.openjdk.org/jmh/pull/140
More information about the jmh-dev
mailing list