Question about JEP 509 and thread state

Milan Mimica milan.mimica at gmail.com
Wed Jul 23 07:41:01 UTC 2025


Hello

I have always assumed that JFR thread sampler will ignore threads that are
blocked on socket read, but the description on https://openjdk.org/jeps/509
states that this is exactly the problem that the JEP 509 aims to resolve.

So my question is specifically
about JfrSamplerThread::sample_java_thread/sample_native_thread. These
explicitly skip sampling unless the thread state is _thread_in_Java/
_thread_in_native. Which state is a thread in while blocked on socket read?
I assumed it was _thread_blocked.


-- 
Milan Mimica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-jfr-dev/attachments/20250723/234c9c72/attachment-0001.htm>


More information about the hotspot-jfr-dev mailing list