RFR: 8357800: Initialize JvmtiThreadState bool fields with bool literals

Stefan Karlsson stefank at openjdk.org
Tue May 27 11:28:01 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`

Looks good (and probably trivial).

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

Marked as reviewed by stefank (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25458#pullrequestreview-2870684713


More information about the hotspot-dev mailing list