On Mon, 1 Aug 2022 14:04:22 GMT, Roger Riggs <rri...@openjdk.org> wrote:

>> Though in this case the Java code has defined behaviour for array types so 
>> it is correct for the VM to assume this is not an array type and to assert 
>> if it is.
>
> My companion question was whether the native code can for efficiently map 
> from array class to component type than Java.

I don't know whether Java or the JVM is faster but I would rather keep this 
code in Java so that I don't have to change existing method 
JVM_GetClassAccessFlags().  (It's used by Class.getClassAccessFlagsRaw().)

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

PR: https://git.openjdk.org/jdk/pull/9688

Reply via email to