On Thu, 11 May 2023 21:29:51 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> This patch fixes the JNI test for the enable native access flag, which was > updated incorrectly as part of https://git.openjdk.org/jdk/pull/13863. > > The problem is that the test doesn't make global references out of the local > ones before sharing them with another thread. > > I could reproduce the failure locally with `-Xcheck:jni`. With this patch, > the test passes. This pull request has now been integrated. Changeset: 13a3fce2 Author: Maurizio Cimadamore <mcimadam...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/13a3fce29e696354b2e79fbcfd3557dc4a1fece7 Stats: 8 lines in 1 file changed: 3 ins; 0 del; 5 mod 8307961: java/foreign/enablenativeaccess/TestEnableNativeAccess.java fails with ShouldNotReachHere Reviewed-by: jvernee ------------- PR: https://git.openjdk.org/jdk/pull/13944