RFR: 8364187: Make getClassAccessFlagsRaw non-native [v5]

Doug Simon dnsimon at openjdk.org
Mon Aug 4 15:04:04 UTC 2025


On Wed, 30 Jul 2025 19:25:34 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This change removes the intrinsic for getClassAccessFlagsRaw for reflection and initializes an rawAccessFlags field in java.lang.Class instead, that Java code can non-natively access.
>> Tested with tier1-4.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Restore c2 optimization.

src/hotspot/share/prims/jvm.cpp line 1744:

> 1742: JVM_END
> 1743: 
> 1744: JVM_ENTRY(jint, JVM_GetClassAccessFlags(JNIEnv *env, jclass cls))

What about the declaration in `jvm.h`? https://github.com/openjdk/jdk/blob/6c52b73465b0d0daeafc54c3c6cec3062bf490c5/src/hotspot/share/include/jvm.h#L610

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26517#discussion_r2251770425


More information about the graal-dev mailing list