RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling [v5]

Markus Grönlund mgronlun at openjdk.org
Mon May 26 08:33:14 UTC 2025


On Mon, 26 May 2025 08:19:16 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

>> Of course. A pointer is less space compared to an inlined struct AND a bool.
>
> But I would need to store the timer_t somewhere? Or where would `timer_t* time` point to?

You store the pointer in JfrThreadLocal, instead of the inlined timer_t struct.

One benefit is that you can fwd declare the type and need not include its header.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2106825673


More information about the hotspot-jfr-dev mailing list