RFR: 8304033: JFR: Missing thread

Markus Grönlund mgronlun at openjdk.org
Tue Apr 4 10:58:15 UTC 2023


On Sun, 2 Apr 2023 23:08:13 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Greetings,
>> 
>> please help review this small adjustment to fix the lack of thread information in certain situations, more specifically associated with JNI_AttachThread and JNI_DetachThread. The old site posting a thread start event is correct in getting the correct thread id, but the thread does not write its checkpoint at that location, which is required after JFR Event Streaming.
>> 
>> The fix is to let the sites in jni.cpp go through the "normal" thread start entry point.
>> 
>> Testing: jdk_jfr
>> 
>> Thanks
>> Markus
>
> Seems reasonable ... though does beg the question why it wasn't done this way from the start?

Thanks @dholmes-ora and @egahlin for the reviews.

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

PR Comment: https://git.openjdk.org/jdk/pull/13272#issuecomment-1495760300


More information about the hotspot-dev mailing list