RFR: 8346567: Make Class.getModifiers() non-native [v2]

Coleen Phillimore coleenp at openjdk.org
Thu Feb 6 13:13:30 UTC 2025


On Thu, 6 Feb 2025 04:37:17 GMT, Chen Liang <liach at openjdk.org> wrote:

>> OK, if the extra load turns out to be a problem in the future, we could look into why the compilers are generating the load when the Class is known/constant.  If the old intrinsic was able to pull the constant out of the Klass, then surely we can do the same and pull the value from the Class field.
>
> Does `static final` help here?

Yes.  Yes it does.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22652#discussion_r1944694824


More information about the core-libs-dev mailing list