Integrated: 8365611: Use lookup table for JfrEventThrottler

Thomas Stuefe stuefe at openjdk.org
Tue Aug 26 22:34:01 UTC 2025


On Fri, 15 Aug 2025 14:58:12 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> This patch prepares the way to throttle any JFR event, not only the three events for which we hard-code throttlers. It also cleans up the throttler code and replaces the switch construct with a lookup table.
> 
> The patch does not yet enable throttling for any other event, since that may be a contentious move, and I would like for this patch to go in without too much fuss. So I did not make any new events "throttleble".
> 
> If it turns out to be non-contentious, I am fine with just enabling throttling capability for all events.

This pull request has now been integrated.

Changeset: 82289f65
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/82289f6559cc083ee306b3175fef3ae9f87d6b1c
Stats:     90 lines in 2 files changed: 45 ins; 25 del; 20 mod

8365611: Use lookup table for JfrEventThrottler

Reviewed-by: mgronlun

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

PR: https://git.openjdk.org/jdk/pull/26801


More information about the hotspot-jfr-dev mailing list