RFR: 8357601: Checked version of JNI Release<type>ArrayElements needs to filter out known wrapped arrays
Coleen Phillimore
coleenp at openjdk.org
Tue Jul 1 12:33:46 UTC 2025
On Thu, 29 May 2025 03:45:48 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> src/hotspot/share/prims/jniCheck.cpp line 357:
>>
>>> 355:
>>> 356: // Arbitrary (but well-known) tag for GetStringUTFChars
>>> 357: const void* STRING_UTF_TAG = (void*) 0x48124812;
>>
>> Why is this well-known? This ending in 12 could be an address, do you not want to make this a possible address?
>
> These are "well-known" by this code. Note I just moved these definitions, I did not invent them.
🤢
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25444#discussion_r2177475101
More information about the hotspot-dev
mailing list