Integrated: 8304718: GetIntArrayElements should not be passed JNI_FALSE
Julian Waters
jwaters at openjdk.org
Mon Mar 27 15:16:01 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
This pull request has now been integrated.
Changeset: 6b2f34f8
Author: Julian Waters <jwaters at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6b2f34f88a39031d17b858ffcf631b2fd101c2eb
Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
8304718: GetIntArrayElements should not be passed JNI_FALSE
Reviewed-by: serb
-------------
PR: https://git.openjdk.org/jdk/pull/13140
More information about the client-libs-dev
mailing list