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

David Holmes dholmes at openjdk.org
Wed Sep 20 02:19:44 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.

Okay - refactoring looks good.

Thanks.

Okay `typeArrayKlass` presents an array of primitive type. `objArrayKlass` represents an array of reference type. For a multi-dimensional array we are dealing with an array of object references (each of which is an array of some other type). Got it.

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15791#pullrequestreview-1634445749
PR Comment: https://git.openjdk.org/jdk/pull/15791#issuecomment-1726779415


More information about the hotspot-dev mailing list