RFR: 8329596: Add test for virtual threads invoking synchronized native methods
Alan Bateman
alanb at openjdk.org
Fri Apr 5 05:20:09 UTC 2024
On Fri, 5 Apr 2024 01:11:49 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Does this generate a warning with `-Xcheck:jni` due to exceptions not being checked for?
I run with`TEST_OPTS_JAVA_OPTIONS=-Xcheck:jni` and don't see any warnings. Are you asking about the usage of GetObjectClass (which is not documented to throw) or GetMethodID (the check for the jmethodID of NULL is at L30). Or maybe you are saying that GetMethodID can return a jmethodID with a pending exception?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18600#discussion_r1552938067
More information about the core-libs-dev
mailing list