RFR: 8345422: Fix JNI Checker "in native method" warnings in the debug agent and debugger tests [v2]
Chris Plummer
cjplummer at openjdk.org
Thu Dec 5 00:56:26 UTC 2024
On Wed, 4 Dec 2024 23:02:32 GMT, Chris Plummer <cjplummer at 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
More information about the serviceability-dev
mailing list