On Wed, 30 Jul 2025 20:25:22 GMT, Roger Riggs <rri...@openjdk.org> wrote:
>> For IDENTITY, I didn't have to inject that one because the Java code knew >> when to set it, not the JVM code reading the data out of the classfile. And >> the logic belongs in the Java code, not the JVM. This one comes from the >> classfile, there isn't another way to get the information to the >> java.lang.Class. > > The VM and Java use the same logic for the value of isIdentity(). > It is computed from as many a 5 fields/flags. At present, it has to be > computed on each call to Class.isIdentity(). > It would be reasonable to compute the value once in the constructor, but the > code in the constructor is not run. Roger, can you file another RFE for this for repo-valhalla and I can try to figure out how to best to do this? Or I can. I didn't think the valhalla isIdentityClass() code was expensive to call. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26517#discussion_r2245151689