RFR: 8274299: Make Method/Constructor/Field accessors @Stable
mchung at openjdk.java.net
Mon Sep 27 17:35:20 UTC 2021
On Sat, 25 Sep 2021 10:15:11 GMT, Peter Levart <plevart at openjdk.org> wrote:
> This patch improves reflective access speed as shown by the included benchmarks:
> ... and is also a prerequisite to make JEP 416 (Reimplement Core Reflection with Method Handle) perform better in some circumstances.
Looks good to me. Very nice performance improvement.
One minor comment: I think the change in `UnsafeFieldAccessorImpl.java` and `UnsafeStaticFieldAccessorImpl.java` isn't necessary since they're final fields.
Marked as reviewed by mchung (Reviewer).
More information about the core-libs-dev