RFR: 8364187: Make getClassAccessFlagsRaw non-native [v2]
ExE Boss
duke at openjdk.org
Fri Aug 1 15:00:03 UTC 2025
On Wed, 30 Jul 2025 10:57:33 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> I mean the existing private fields of `SharedSecrets`[^1] so that the JIT is able to constant fold calls to `SharedSecrets::getJava*Access()` so that it becomes equally as performant as using a `Holder` class.
>>
>> Modifiers are transient, as those are sourced from the `InnerClasses` attribute, which can be changed when classes are redefined by a **JVMTI** agent, but access flags can’t be changed through redefinition.
>>
>> [^1]: https://github.com/openjdk/jdk/blob/330ee871315348594171c43aa75b58f6027001af/src/java.base/share/classes/jdk/internal/access/SharedSecrets.java#L62-L92
>
> I don't think inner class attributes can be changed via JVMTI RedefineClasses either. I'm pretty sure we check and that's considered a change of schema. File an RFE to make SharedSecrets fields @Stable though for a different change.
I don’t have a **JBS** account, and I don’t like going through <https://bugreport.java.com>, so could someone else file said **RFE**?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26517#discussion_r2248196045
More information about the graal-dev
mailing list