RFR: 8274299: Make Method/Constructor/Field accessors @Stable
Claes Redestad
redestad at openjdk.java.net
Mon Sep 27 20:13:02 UTC 2021
On Mon, 27 Sep 2021 19:59:00 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> One thing I'm puzzling is why the performance result is better but `java.lang.reflect` is not in the TNSFF package list.
I think for deciding if a field can be treated as constant, `@Stable` has equal weight as a final in a TNSFF package, see https://github.com/openjdk/jdk/blob/master/src/hotspot/share/ci/ciField.cpp#L287
Adding java/lang/reflect to the trusted package list seem reasonable, though.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5694
More information about the core-libs-dev
mailing list