RFR: 8280422: thread_from_jni_environment can never return NULL [v2]
David Holmes
dholmes at openjdk.java.net
Mon Feb 21 13:41:53 UTC 2022
On Mon, 21 Feb 2022 13:21:21 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:
>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update copyright
>
> src/hotspot/share/runtime/thread.hpp line 1327:
>
>> 1325: if (current->is_terminated()) {
>> 1326: current->block_if_vm_exited();
>> 1327: ShouldNotReachHere();
>
> This breaks AsyncGetCallTrace
If we reach that code then the VM aborts. It should be impossible to reach that statement and thus impossible to actually return NULL in the old code. Please elaborate under what conditions you think this code can be reached.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7193
More information about the hotspot-runtime-dev
mailing list