[lworld] RFR: 8363846: [lworld] Make Class.isIdentityClass() non-native [v2]
Roger Riggs
rriggs at openjdk.org
Wed Jul 23 13:44:06 UTC 2025
On Wed, 23 Jul 2025 11:41:15 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> Where is the hit at?
>>
>> Moving this method to Java should be friendly to both interpreter (no more jni context switch) and C2 (no more opacity). We can further simplify these to be modifier checks later on.
>
> Yes this is better performance because C2 now doesn't have to intrinsify this native call.
I'd go ahead and create the isIdentity field and move this code to the constructor.
The modifiers, component type and primitive flag are all available at once.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1514#discussion_r2225659984
More information about the valhalla-dev
mailing list