On Wed, 4 Dec 2024 23:02:32 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

>>> What I'm not so sure of is which JNI functions check this flag (I know only 
>>> the "call" functions set it)
>> 
>> In `invokeNonVirtual` we calls `CallNonvirtualObjectMethodA` JNI function 
>> and then call `saveGlobalRef`, it looks strange if the case don't cause the 
>> warning.
>
> I've not sure if NewGlobalRef checks the flag or only checks if there is 
> actually a pending exception. I'm trying to find that out.

Looks like we don't have a test case for invokeNonVirtual with an Object 
result. I'll update this to use saveGlobalRefHelper() also.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22528#discussion_r1870467853

Reply via email to