Integrated: 8357800: Initialize JvmtiThreadState bool fields with bool literals

Aleksey Shipilev shade at openjdk.org
Tue May 27 14:48:03 UTC 2025


On Mon, 26 May 2025 17:25:33 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> [JDK-8356251](https://bugs.openjdk.org/browse/JDK-8356251) changed `JvmtiThreadState._saved_interp_only_mode` from `int` to `bool`, which is good. But the initializations are still done with `0` literals. Even though it is benign, SonarCloud still complains about the intentionality of this initialization.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `serviceability/jvmti`

This pull request has now been integrated.

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

8357800: Initialize JvmtiThreadState bool fields with bool literals

Reviewed-by: alanb, stefank

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

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


More information about the hotspot-dev mailing list