6 Feb
2023
6 Feb
'23
9:42 a.m.
On Mon, 6 Feb 2023 00:49:47 GMT, David Holmes <dholmes@openjdk.org> wrote:
Thanks David. I realized there is no need to move anything in jni.cpp, so I rolled them back. The change to the iterator will suffice.
It will? Don't you still have the problem that the thread can be seen after ` thread->set_done_attaching_via_jni();` but before `post_thread_start_event(thread);` where the id will be set?
Yes. The JFR_JVM_THREAD_ID(thread) is a lazy assignment of the thread id. It can be done by the thread itself, or the periodic task thread. The premise for a JavaThread is that there exist a threadObj. ------------- PR: https://git.openjdk.org/jdk/pull/12388