Integrated: 8360201: JFR: Initialize JfrThreadLocal::_sampling_critical_section

Aleksey Shipilev shade at openjdk.org
Tue Jun 24 15:08:36 UTC 2025


On Mon, 23 Jun 2025 16:16:48 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Initially found by UBSan. I was not able to reproduce it locally, @MBaesken would try. But the problem seems obvious: the initial value for the `bool` field is garbage. I have checked other fields in `JfrThreadLocal`, they seem fine.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `jdk_jfr`

This pull request has now been integrated.

Changeset: 5c1f77fa
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5c1f77fab1f56e470157d8680310417924abb298
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8360201: JFR: Initialize JfrThreadLocal::_sampling_critical_section

Reviewed-by: zgu, mgronlun

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

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


More information about the hotspot-jfr-dev mailing list