[OpenJDK 2D-Dev] RFR: 8269223: -Xcheck:jni WARNINGs working with fonts on Linux [v3]

Sergey Bylokhov serb at openjdk.java.net
Thu Aug 12 22:01:27 UTC 2021

On Mon, 19 Jul 2021 08:31:21 GMT, Maxim Kartashev <github.com+28651297+mkartashev at openjdk.org> wrote:

>> src/java.desktop/windows/native/libawt/java2d/d3d/D3DRenderQueue.cpp line 870:
>>> 868:         J2dTraceLn(J2D_TRACE_VERBOSE, "  executing runnable");
>>> 869:         jboolean ignoreException;
>>> 870:         JNU_CallMethodByName(env, &ignoreException, pFlush->runnable, "run", "()V");
>> What is the purpose of this change? the only difference is that in the second case the ExceptionCheck will be called, does it affect something?
> Yes, the `ExceptionCheck()` call will silence the warnings from `-Xcheck:jni`.

Does it actually suppress the "Xcheck:jni" or it clears a raised exception? If an exception is still "raised" after this call we should do some additional steps to log/clean it.


PR: https://git.openjdk.java.net/jdk/pull/4572

More information about the 2d-dev mailing list