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

Johannes Bechberger jbechberger at openjdk.org
Mon May 26 10:31:56 UTC 2025


On Mon, 26 May 2025 10:25:28 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> I can't follow. This is testing whether the queue is more than two thirds full.
>
> I'm sorry, I read this wrong. In this case, it does not matter: (capacity * 2) / 3 == capacity * (2/3)

I ignored the small underflow, so `size() * 3 > capacity() * 2` is more accurate, but far less readable.

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

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


More information about the hotspot-jfr-dev mailing list