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

Coleen Phillimore coleenp at openjdk.org
Fri Feb 7 21:14:13 UTC 2025


On Fri, 7 Feb 2025 19:58:12 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> Good point. Moreover, it seems most of intrinsics on Class queries can be replaced with a flag bit check on the mirror. (Do we have 16 unused bits in Class::modifiers after this change?)

Yes, I think so.  isArray and isPrimitive definitely.  We could first change the modifiers field to "char" because that's its size and then have two booleans for each of these.

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

PR Comment: https://git.openjdk.org/jdk/pull/22652#issuecomment-2644136904


More information about the serviceability-dev mailing list