RFR: 8337753: Target class of upcall stub may be unloaded

Jorn Vernee jvernee at openjdk.org
Wed Sep 4 11:58:20 UTC 2024


On Wed, 4 Sep 2024 11:39:10 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> src/hotspot/share/prims/upcallLinker.cpp line 142:
>> 
>>> 140:   Handle exception_h(Thread::current(), exception);
>>> 141:   java_lang_Throwable::print_stack_trace(exception_h, tty);
>>> 142:   ShouldNotReachHere();
>> 
>> How does `print_stack_trace` not return here?
>
> It does return. `ShouldNotReachHere` is used to crash the VM.

`fatal()` might be better here. I could change it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20479#discussion_r1743638097


More information about the core-libs-dev mailing list