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

Sergey Bylokhov serb at openjdk.java.net
Fri Aug 13 18:53:27 UTC 2021


On Fri, 13 Aug 2021 12:11:15 GMT, Maxim Kartashev <github.com+28651297+mkartashev at openjdk.org> wrote:

>> 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.
>
> Yes, the exception will still be "raised" after this call. Since there are no JNI calls (at least those that are forbidden to make with an exception pending) between here and return back to Java, I believe no additional steps are necessary.

Then I suggest logging them via some of the trace macros.

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

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


More information about the 2d-dev mailing list