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

Johannes Bechberger jbechberger at openjdk.org
Wed May 7 20:51:02 UTC 2025


On Wed, 7 May 2025 17:31:07 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>> @apangin could you chime in?
>
>> 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.

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

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


More information about the hotspot-dev mailing list