RFR: 8274299: Make Method/Constructor/Field accessors @Stable

Peter Levart plevart at openjdk.java.net
Sat Sep 25 10:23:40 UTC 2021


This patch improves reflective access speed as shown by the included benchmarks:

https://jmh.morethan.io/?gists=902f4b43519c4f96c7abcd14cdc2d27d,ac490481e3001c710d75d6071c10b23a

... and is also a prerequisite to make JEP 416 (Reimplement Core Reflection with Method Handle) perform better in some circumstances.

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

Commit messages:
 - Add JMH benchmarks
 - Make Method/Constructor/Field accessors @Stable

Changes: https://git.openjdk.java.net/jdk/pull/5694/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5694&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274299
  Stats: 721 lines in 13 files changed: 637 ins; 37 del; 47 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5694.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5694/head:pull/5694

PR: https://git.openjdk.java.net/jdk/pull/5694


More information about the core-libs-dev mailing list