Integrated: 8361447: [REDO] Checked version of JNI Release<type>ArrayElements needs to filter out known wrapped arrays

David Holmes dholmes at openjdk.org
Thu Jul 10 02:02:48 UTC 2025


On Tue, 8 Jul 2025 02:17:01 GMT, David Holmes <dholmes at openjdk.org> wrote:

> The original PR (https://github.com/openjdk/jdk/pull/26123) had incorrect usage of `SafeFetch32`. This PR replaces that with the use of `os::is_readable_range` as proposed by @tstuefe  (thank you!). In addition I found that code was no longer getting exercised by the regression test so I added a gtest for that (during which it was discovered that the new implementation in `verify` requires any gtest that uses it to be `TEST_VM` rather than `TEST`).
> 
> Testing: tiers 1-4
> 
> Thanks

This pull request has now been integrated.

Changeset: f67e4354
Author:    David Holmes <dholmes at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f67e4354316dcec185eac66adec2395e20b62579
Stats:     349 lines in 6 files changed: 323 ins; 6 del; 20 mod

8361447: [REDO] Checked version of JNI Release<type>ArrayElements needs to filter out known wrapped arrays

Co-authored-by: Thomas Stuefe <stuefe at openjdk.org>
Reviewed-by: mdoerr, stuefe, coleenp

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

PR: https://git.openjdk.org/jdk/pull/26177


More information about the hotspot-dev mailing list