RFR: 8372098: Move AccessFlags to InstanceKlass

Chen Liang liach at openjdk.org
Tue Nov 18 15:43:03 UTC 2025


On Tue, 18 Nov 2025 13:27:06 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> ArrayKlass doesn't set AccessFlags so don't look for them there.  See CR for details.
> Fixed SA and jvmci.  @iwanowww Can you check that I changed C2 correctly (we talked about this in August).
> Tested with tier1-4.  5-7 in progress.

src/hotspot/share/oops/constantPool.cpp line 1228:

> 1226: 
> 1227:       // Check constant pool method consistency
> 1228:       InstanceKlass* callee = InstanceKlass::cast(k);

I know a MethodRef can be `[I`, `clone`, `()Ljava/lang/Object;` for `intArray.clone()` Java calls translated by javac. I wonder if this new code would break for such an array callee class.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28371#discussion_r2538494116


More information about the graal-dev mailing list