RFR: 8304033: JFR: Missing thread

David Holmes dholmes at openjdk.org
Sun Apr 2 23:11:17 UTC 2023


On Fri, 31 Mar 2023 16:42:55 GMT, Markus Grönlund <mgronlun 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?

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13272#pullrequestreview-1368155282


More information about the hotspot-dev mailing list