[lworld] RFR: 8378273: [lworld] Use acmp map to detect oops for VarHandle [v2]
Paul Hübner
phubner at openjdk.org
Fri Feb 20 13:04:29 UTC 2026
On Fri, 20 Feb 2026 12:59:47 GMT, Chen Liang <liach at openjdk.org> wrote:
>> test/jdk/valhalla/valuetypes/ValueClassCompatibilityTest.java line 106:
>>
>>> 104: hasOopsCase(true, String.class, "final identity class");
>>> 105: hasOopsCase(true, Comparable.class, "interface");
>>> 106: hasOopsCase(true, int[].class, "array class");
>>
>> I'm not following. How does/can a primitive `int[]` contain oops?
>
> A field `int[] a` is a reference, never flat.
Of course. But I interpreted `hasOopsCase` meaning "does this container contain oops" whereby the `[]` is the container and the `int` is the field. So is `hasOopsCase` only called on the element of the array rather than the container?
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2143#discussion_r2833099515
More information about the valhalla-dev
mailing list