RFR: 8295974: jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames [v2]

David Holmes dholmes at openjdk.org
Thu Dec 22 21:05:52 UTC 2022


On Thu, 22 Dec 2022 19:52:22 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Added a regression test
>
> src/hotspot/share/runtime/javaThread.cpp line 1689:
> 
>> 1687:       return;
>> 1688:     }
>> 1689:     frame f = os::current_frame();
> 
> Is the function `JavaThread::print_jni_stack()` to print current JavaThread only or it was initially designed to print any JavaThread?

It is only used for the current thread. That is a mistake on my part making it look like it works for any thread - it potentially could but only if the target was made safe.

Good catch!

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

PR: https://git.openjdk.org/jdk/pull/11703


More information about the hotspot-dev mailing list