RFR: 8345405: Add JMH showing the regression in 8341649

Eric Caspole ecaspole at openjdk.org
Wed Dec 4 19:13:59 UTC 2024


This JMH using MethodHandles shows the regression in 8341649, for example comparing 24-b15, which included the regression to today's head. It was an interaction between the runtime and C2 rather than a change in MethodHandles.

Here are example results from an Ampere platform:
jdk-24-b25 before the fix:
Benchmark                (classes)  (instances)   Mode  Cnt   Score   Error   Units
MethodHandleStress.work       1000          100  thrpt   20  33.423 ± 7.678  ops/ms

Today's head with the fix:
Benchmark                (classes)  (instances)   Mode  Cnt    Score    Error   Units
MethodHandleStress.work       1000          100  thrpt   20  709.249 ± 50.575  ops/ms

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

Commit messages:
 - 8345405: Add JMH showing the regression in 8341649

Changes: https://git.openjdk.org/jdk/pull/22556/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22556&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345405
  Stats: 224 lines in 1 file changed: 224 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22556.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22556/head:pull/22556

PR: https://git.openjdk.org/jdk/pull/22556


More information about the hotspot-dev mailing list