RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native
Chen Liang
liach at openjdk.org
Wed Feb 19 16:25:55 UTC 2025
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> Class.isInterface() can check modifier flags, Class.isArray() can check whether component mirror is non-null and Class.isPrimitive() needs a new final transient boolean in java.lang.Class that the JVM code initializes.
> Tested with tier1-4 and performance tests.
Re roger's IntrinsicCandidate remark: One behavior that might be affected would be C2's inlining preferences. Some inline-sensitive workloads like FFM API might be affected if some Class attribute access cannot be inlined because the incoming Class object is not constant. See #23460 and #23628.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23572#issuecomment-2669138528
More information about the core-libs-dev
mailing list