RFR: 8301380: jdk/jfr/api/consumer/streaming/TestCrossProcessStreaming.java [v2]

Markus Grönlund mgronlun at openjdk.org
Mon Feb 6 09:42:54 UTC 2023


On Mon, 6 Feb 2023 00:49:47 GMT, David Holmes <dholmes at 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


More information about the hotspot-jfr-dev mailing list