RFR: 8320189: vmTestbase/nsk/jvmti/scenarios/bcinstr/BI02/bi02t001 memory corruption when using -Xcheck:jni [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Fri May 30 05:29:06 UTC 2025


On Thu, 29 May 2025 19:50:33 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   review: add a call to ReleaseByteArrayElements to new function jni_array_to_jvmti_allocated
>
> test/lib/jdk/test/lib/jvmti/jvmti_common.hpp line 458:
> 
>> 456:       fatal(jni, "JNI GetArrayLength returned a non-positive value");
>> 457:     }
>> 458:     jbyte* jni_arr = jni->GetByteArrayElements(arr, nullptr);
> 
> need corresponding `ReleaseByteArrayElements` call

Good catch, thanks. Fixed now.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25422#discussion_r2115163012


More information about the serviceability-dev mailing list