On Thu, 28 Apr 2022 13:18:59 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> Johannes Bechberger has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Use Thread::current_or_null_safe() and add comments > > src/hotspot/share/prims/forte.cpp line 571: > >> 569: Thread* raw_thread = Thread::current_or_null_safe(); >> 570: >> 571: if (trace->env_id == NULL || raw_thread == NULL || >> !raw_thread->is_Java_thread() || ((JavaThread*)raw_thread)->is_exiting()) { > > use `rawThread->as_JavaThread()` not a plain cast. this method does not exist ------------- PR: https://git.openjdk.java.net/jdk/pull/8446