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.
------------- Commit messages: - Add ')' removed from jvmci test. - Shrink modifiers flag so isPrimitive can share word. - Remove isPrimitive intrinsic in favor of a boolean. - Make isInterface non-native. - Make isArray non-native Changes: https://git.openjdk.org/jdk/pull/23572/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23572&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8349860 Stats: 178 lines in 19 files changed: 37 ins; 115 del; 26 mod Patch: https://git.openjdk.org/jdk/pull/23572.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23572/head:pull/23572 PR: https://git.openjdk.org/jdk/pull/23572