RFR: 8254995: [x86] ControlWord::print(), rc/pc variables might not be initialized

Vladimir Kozlov kvn at openjdk.java.net
Mon Oct 19 20:23:12 UTC 2020


On Mon, 19 Oct 2020 10:20:18 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Static analyzers complain that in `ControlWord::print()`, `rc`/`pc` variables might not be initialized. This never
> happens in practice, because `rounding_control()` and `precision_control()` return the good values. We can make it
> cleaner to silence the compiler.  Testing:
>   - [x] Linux x86_64 tier1

We prefer to use fatal() with printing unexpected value.

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

Changes requested by kvn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/731


More information about the hotspot-dev mailing list