RFR: 8362573: Incorrect weight of the first ObjectAllocationSample JFR event (regression) [v3]

Erik Gahlin egahlin at openjdk.org
Tue Sep 23 13:07:26 UTC 2025


On Tue, 23 Sep 2025 12:32: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
>
> Markus Grönlund has updated the pull request incrementally with one additional commit since the last revision:
> 
>   invert condition

Marked as reviewed by egahlin (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26900#pullrequestreview-3257922536


More information about the hotspot-jfr-dev mailing list