RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v3]
Dean Long
dlong at openjdk.org
Wed Feb 19 21:19:58 UTC 2025
On Wed, 19 Feb 2025 14:19:58 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> ... but not in the return since the caller likely will fetch the klass pointer next.
I notice that too. Callers are using is_primitive() to short-circuit calls to as_Klass(), which means they seem to be aware of this implementation detail when maybe they shouldn't.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23572#discussion_r1962384926
More information about the core-libs-dev
mailing list