RFR: 8307961: java/foreign/enablenativeaccess/TestEnableNativeAccess.java fails with ShouldNotReachHere
Jorn Vernee
jvernee at openjdk.org
Thu May 11 23:58:43 UTC 2023
On Thu, 11 May 2023 21:29:51 GMT, Maurizio Cimadamore <mcimadamore at 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.
Marked as reviewed by jvernee (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/13944#pullrequestreview-1423593045
More information about the core-libs-dev
mailing list