Integrated: 8362573: Incorrect weight of the first ObjectAllocationSample JFR event (regression)

Markus Grönlund mgronlun at openjdk.org
Tue Sep 30 10:38:31 UTC 2025


On Fri, 22 Aug 2025 11:28:04 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> Fix to ensure that the ObjectAllocationSample event sample weight property is initialized correctly when the event is enabled.
> 
> The previous clearing logic has been integrated into the existing thread iteration as part of the notify process, to avoid double passes. In addition, clearing and the event only apply to the set of JavaThreads.
> 
> This time also includes a regression test.
> 
> Testing: jdk_jfr
> 
> Thanks
> Markus

This pull request has now been integrated.

Changeset: b19e8721
Author:    Markus Grönlund <mgronlun at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b19e872192106f47c5d9b425230cc2bfe3e4786c
Stats:     177 lines in 7 files changed: 116 ins; 30 del; 31 mod

8362573: Incorrect weight of the first ObjectAllocationSample JFR event (regression)

Reviewed-by: egahlin

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

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


More information about the hotspot-jfr-dev mailing list