Integrated: 8364282: ZGC: Improve ZPageAllocation JFR event sending
Joel Sikström
jsikstro at openjdk.org
Thu Jul 31 07:43:02 UTC 2025
On Tue, 29 Jul 2025 13:51:16 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:
> Hello,
>
> This is a follow up to [JDK-8350441](https://bugs.openjdk.org/browse/JDK-8350441), improving on how the ZPageAllocation JFR event is sent.
>
> The starting time for the event is measured separately from creating a local event varaible (EventZPageAllocation). This means it is better to use the anonymous EventZPageAllocation::commit rather than creating an event and sending that event, which would record the starting time again, unnecessarily.
>
> Additionally, if the event is not enabled (either specifically or if JFR is disabled), we should not waste time sampling statistics for the event.
>
> Testing:
> * Oracle's tier1-4
This pull request has now been integrated.
Changeset: b9f7caed
Author: Joel Sikström <jsikstro at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/b9f7caed775e86e71f7d37789cb196fb1444ef12
Stats: 14 lines in 1 file changed: 3 ins; 0 del; 11 mod
8364282: ZGC: Improve ZPageAllocation JFR event sending
Reviewed-by: stefank, aboldtch
-------------
PR: https://git.openjdk.org/jdk/pull/26534
More information about the hotspot-gc-dev
mailing list