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

Johannes Bechberger jbechberger at openjdk.org
Wed May 7 07:04:26 UTC 2025


On Wed, 7 May 2025 01:24:27 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>>> Could you help with solving this issue?
>> 
>> I can try.
>
> `JfrTraceQueue` is not used inside of signal handlers, maybe you can use existing `LockfreeStack` or just go with locked implementation instead?

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.

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

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


More information about the hotspot-dev mailing list