RFR: 8316427: Duplicated code for {obj, type}ArrayKlass::array_klass

Coleen Phillimore coleenp at openjdk.org
Tue Sep 19 11:49:38 UTC 2023


On Mon, 18 Sep 2023 16:40:08 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Please review this trivial change to move duplicated array_klass().  Tested with tier1 on Oracle supported platforms.

What Andrew said.  An array of int[][] is an array of objects, so an ObjArrayKlass.  The reason that array_klass can't return an ObjArrayKlass instead of ArrayKlass, is that a single dimension primitive type array returns TypeArrayKlass.
Thanks Andrew, please approve the change.

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

PR Comment: https://git.openjdk.org/jdk/pull/15791#issuecomment-1725344290


More information about the hotspot-dev mailing list