On Wed, 25 Mar 2026 14:10:55 GMT, Stefan Karlsson <[email protected]> wrote:

> These functions cast oops to arrayOop without first checking that the `obj` 
> argument is an array. It turns out that TestIntrinsics.java sends in 
> non-array objects.
> 
> I found this when I worked on something else and changed 
> `obj->is_null_free_array()` to `obj->klass()->is_null_free_array_klass()`, 
> and the latter asserted because `obj` was a String and not an array.

During an internal discussion we decided to change the code to take use 
`Object[]` as the array parameter. The test code was changed accordingly.

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

PR Comment: https://git.openjdk.org/valhalla/pull/2261#issuecomment-4138215893

Reply via email to