RFR: 8337789: JEP 509: JFR CPU-Time Profiling (Experimental) [v47]

Zhengyu Gu zgu at openjdk.org
Wed May 7 21:34:03 UTC 2025


On Wed, 7 May 2025 20:47:55 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

>>> You mean the stack? The trace queue is used in every signal handler to obtain a new trace. But with the stack I have the problem as explained before: I would need to store the elements somewhere and therefore need a wrapper class that handles this. This offers not much benefit in my opinion.
>> 
>> Can you explain why it needs to be multi-thread safe inside a signal handler? What do I miss?
>
> It's used in the signal handlers of multiple threads (per thread signals) and at safepoints of all threads in parallel.
> 
> Safepoints per thread can happen in parallel. Hope this clarifies it.

Thank you for the explanation.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20752#discussion_r2078524696


More information about the hotspot-dev mailing list