[lworld] RFR: 8363846: [lworld] Make Class.isIdentityClass() non-native

Coleen Phillimore coleenp at openjdk.org
Tue Jul 22 17:47:31 UTC 2025


This moves isIdentityClass() implementation to Class.java, and checks within the JVM that is_identity_class() doesn't check the access flags for an ArrayKlass, since AccessFlags aren't initialized in ArrayKlasses.  The AccessFlags should be moved from Klass.hpp to InstanceKlass.cpp in mainline but that's a more complicated change and has several pieces.
Added a test.
Tested with tier1 locally.

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

Commit messages:
 - 8363846: [lworld] Make Class.isIdentityClass() non-native

Changes: https://git.openjdk.org/valhalla/pull/1514/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1514&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8363846
  Stats: 111 lines in 7 files changed: 92 ins; 14 del; 5 mod
  Patch: https://git.openjdk.org/valhalla/pull/1514.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1514/head:pull/1514

PR: https://git.openjdk.org/valhalla/pull/1514


More information about the valhalla-dev mailing list