RFR: 8274299: Make Method/Constructor/Field accessors @Stable [v2]

Peter Levart plevart at openjdk.java.net
Tue Sep 28 08:25:17 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.

Peter Levart has updated the pull request incrementally with one additional commit since the last revision:

  Make Method/Constructor/Field instance fields initialized in the constructors final

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5694/files
  - new: https://git.openjdk.java.net/jdk/pull/5694/files/0298253e..1f273e9a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5694&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5694&range=00-01

  Stats: 28 lines in 3 files changed: 0 ins; 0 del; 28 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