RFR: 8308748: JNU_GetStringPlatformChars may write to String's internal memory array [v2]

Alan Bateman alanb at openjdk.org
Sat May 27 14:24:03 UTC 2023


On Fri, 26 May 2023 19:54:07 GMT, Rudi Horn <duke at openjdk.org> wrote:

>> This change prevents the contents of the internal string array from being copied back when releasing it.
>
> Rudi Horn has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
> 
>   Use JNI_ABORT to release string bytes

This looks okay. Have you checked the other usages of ReleasePrimitiveArrayCritical (e.g. libzip) see if they need the copy back when releasing?

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

PR Comment: https://git.openjdk.org/jdk/pull/14117#issuecomment-1565450604


More information about the core-libs-dev mailing list