RFR: 8304718: GetIntArrayElements should not be passed JNI_FALSE

Julian Waters jwaters at openjdk.org
Thu Mar 23 22:02:34 UTC 2023


On Wed, 22 Mar 2023 14:20:54 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> AWT passes JNI_FALSE to the JVM to avoid a copy, which is not correct since JNI has absolutely no control over whether a copy is made or not. The parameter in question is a pointer to a jboolean that the JVM sets to indicate whether it made a copy or not, which should be passed nullptr because we don't bother about the copy status of the jint

Alright, thanks for the catches Sergey

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

PR Comment: https://git.openjdk.org/jdk/pull/13140#issuecomment-1481967106



More information about the client-libs-dev mailing list