On Wed, 24 Jun 2026 14:48:34 GMT, Daisuke Yamazaki <[email protected]> wrote:

> Fix null checking when copying from flat arrays to reference arrays.
> 
> Previously, `FlatArrayKlass::copy_array` called `obj_at_put` without `CHECK`. 
> As aresult, the runtime check for null-restricted arrays was bypassed.
> 
> A new test has been added to verify this behaviour.
> 
> Thanks.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 2752ad8d
Author:    Daisuke Yamazaki <[email protected]>
Committer: Frederic Parain <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/2752ad8d71861fc42713d554ef3dab5980d2b1e1
Stats:     63 lines in 2 files changed: 62 ins; 0 del; 1 mod

8382937: [lworld] System.arraycopy can copy null into a null-restricted array

Reviewed-by: fparain

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

PR: https://git.openjdk.org/valhalla/pull/2577

Reply via email to