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

Zhengyu Gu zgu at openjdk.org
Wed May 7 17:34:27 UTC 2025


On Wed, 7 May 2025 09:24:50 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.
>
> @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?

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

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


More information about the hotspot-dev mailing list